24 lines
456 B
C#
24 lines
456 B
C#
using Step.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using System.Web.Http.Description;
|
|
|
|
namespace Step.Controllers
|
|
{
|
|
|
|
[RoutePrefix("api/data")]
|
|
public class DataController : ApiController
|
|
{
|
|
[ResponseType(typeof(TestModel))]
|
|
[Route(""), HttpGet]
|
|
public IHttpActionResult Test()
|
|
{
|
|
return Ok(new TestModel() { Id = 42 });
|
|
}
|
|
}
|
|
}
|