コード例 #1
0
 public ActionResult DeleteStatus(int idStatus)
 {
     try
     {
         Bd = new AccessDB();
         if (Bd.DeleteStatus(idStatus))
         {
             ViewBag.Mensagem = "Status deleted!";
         }
         return(RedirectToAction("GetStatus"));
     }
     catch (Exception)
     {
         return(View("GetStatus"));
     }
 }