public virtual ActionResult Reservar(TReservation model) { try { model.Save(); TIten.SaveMovies(model); TempData["Alerta"] = new Alert("success", "Reserva realizada com sucesso"); return(RedirectToAction("cliente_filmes")); } catch (SimpleValidationException ex) { return(HandleViewException(model, ex)); } }
public virtual ActionResult Cadastrar(TReservation model) { try { TempData["Alert"] = new Alert("success", "Sua reserva foi cadastrada com sucesso"); model.Save(); TIten.SaveIten(model); return(RedirectToAction("Index")); } catch (SimpleValidationException ex) { return(HandleViewException(model, ex)); } }