Exemplo n.º 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());
     }
 }
Exemplo n.º 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());
     }
 }