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)); }
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)); }