Guest User

Untitled

a guest
Jul 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class BaseController : ApiController {
  2. [HttpPost]
  3. public IHttpActionResult Post(T entity)
  4. {
  5. return Ok();
  6. }
  7.  
  8. [HttpPut]
  9. public IHttpActionResult Put(T entity)
  10. {
  11. return Ok();
  12. }
  13. }
  14.  
  15. public class ObjectController : BaseController {
  16. [HttpPut]
  17. [Route("api/Object")]
  18. public new IHttpActionResult Put(T entity)
  19. {
  20. return Ok();
  21. }
  22. }
Add Comment
Please, Sign In to add comment