示例#1
0
 public ActionResult Edit(String id, LoaiSP LSP)
 {
     try
     {
         // TODO: Add update logic here
         PhanLoaiBus.UpdateLSP(id, LSP);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
示例#2
0
 public ActionResult XoaTam(String id, LoaiSP LSP)
 {
     try
     {
         // TODO: Add delete logic here
         LSP.TinhTrang = 1;
         PhanLoaiBus.UpdateLSP(id, LSP);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }