Exemple #1
0
 public ActionResult Delete(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add delete logic here
         LoaiBus.Xoa(id);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemple #2
0
 public ActionResult Delete(string id, Loai l)
 {
     try
     {
         // TODO: Add delete logic here
         LoaiBus.Xoa(id, l);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }