Example #1
0
 public ActionResult Manage(BookingViewModel vm)
 {
     try
     {
         _manager.Edit(vm.Booking);
         return(RedirectToAction("Manage", new { id = vm.Booking.Id, status = "success" }));
     }
     catch (Exception e)
     {
         return(RedirectToAction("Manage", new { id = vm.Booking.Id, status = "fail" }));
     }
 }