40 lines
810 B
C#
40 lines
810 B
C#
using Bootstrap.Admin.Models;
|
|
using Bootstrap.DataAccess;
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
|
|
namespace Bootstrap.Admin.Controllers
|
|
{
|
|
public class UsersController : ApiController
|
|
{
|
|
// GET api/<controller>
|
|
[HttpGet]
|
|
public UserModel Get()
|
|
{
|
|
return new UserModel()
|
|
{
|
|
};
|
|
}
|
|
|
|
// GET api/<controller>/5
|
|
public string Get(int id)
|
|
{
|
|
return "value";
|
|
}
|
|
|
|
// POST api/<controller>
|
|
public void Post([FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// PUT api/<controller>/5
|
|
public void Put(int id, [FromBody]string value)
|
|
{
|
|
}
|
|
|
|
// DELETE api/<controller>/5
|
|
public void Delete(int id)
|
|
{
|
|
}
|
|
}
|
|
} |