Esempio n. 1
0
 public ActionResult Add(BookingViewModel vm)
 {
     try
     {
         _manager.Add(vm.Booking);
         return(RedirectToAction("Index", new { status = "success" }));
     }
     catch (Exception e)
     {
         return(RedirectToAction("Index", new { status = "fail" }));
     }
 }