Exemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     service.Delete(id);
     return(RedirectToAction("index"));
 }