Example #1
0
 public ActionResult Delete(int id, Seat seat)
 {
     try
     {
         seat = seatService.GetSeat(id);
         seatService.Delete(id);
         return(RedirectToAction("Index"));
     }
     catch (DataException)
     {
         ModelState.AddModelError("", "Không thể xóa ghế");
     }
     return(View(seat));
 }