public ActionResult Cancel(string id_reserva, string dia, string hora) { if (Session["Login"] == "NO LOGEADO") { return(RedirectToAction("IniciarSesion", "Account", new { id = 2 })); } Reserve re = new Reserve(); if (re.EliminarReserva(id_reserva)) { Horas ho = new Horas(); int truee = 0; if (ho.modificarEstado(truee, dia, hora)) { return(RedirectToAction("Index", "Home")); } else { //realizar un delete de reserve } } else { } return(RedirectToAction("Search", "MyReserve")); }