public IHttpActionResult Delete(long id)
 {
     if (Logic.Delete(id))
     {
         return(Ok());
     }
     else
     {
         return(NotFound());
     }
 }
示例#2
0
 public ActionResult DeleteConfirmed(int id)
 {
     _statusLogic.Delete(id);
     return(RedirectToAction("Index"));
 }