public ActionResult Eliminar(int ID) { EF_Practice.Reserva Reserva = DAGeneral.listadoReserva().Where(x => x.CodReserva == ID).FirstOrDefault(); bool exito = DAGeneral.EliminarReserva(Reserva); return(RedirectToAction("Index")); }
public ActionResult Editar(int ID) { EF_Practice.Reserva Reserva = DAGeneral.listadoReserva().Where(x => x.CodReserva == ID).FirstOrDefault(); return(View(Reserva)); }
public ActionResult Crear() { ViewBag.ListadoReservas = DAGeneral.listadoReserva(); return(View()); }
public ActionResult ListReserva() { return(PartialView((DAGeneral.listadoReserva()))); }