Exemplo n.º 1
0
 // DELETE api/values/5
 //[Authorize(Roles = Roles.Admin)]
 public IHttpActionResult Delete(int id)
 {
     if (!_business.Delete(id))
     {
         return(InternalServerError());
     }
     return(Ok());
 }
Exemplo n.º 2
0
        // DELETE api/<controller>/5
        public User Delete(int id)
        {
            var deletedUser = userBusinessLogic.Delete(id);

            return(deletedUser);
        }