public ActionResult InsertarExpedienteFojas(string Accion, int IdEx) { ViewBag.Accion = Accion; ExpedienteFojas Expf = new ExpedienteFojas(); Expf.IdExpediente = IdEx; return(View(Expf)); }
public ActionResult FormExpedienteFojas(string Accion, int IdExpf, int IdEx) { ExpedienteFojas UnexpedienteFojas = BD.TraerExpediente_fojas(IdExpf); ViewBag.Accion = Accion; if (Accion == "Obtener") { return(View("EdicionExpedienteFojas", UnexpedienteFojas)); } if (Accion == "Eliminar") { BD.EliminarFojas(IdExpf); ViewBag.ExpedienteFojas = BD.TraerLasExpFojas(IdEx); return(View("ABMExpedienteFojas")); } return(View("SinAccion")); }
public ActionResult ABMExpedienteFojas(ExpedienteFojas Expf, int IdEx) { ViewBag.IdExpediente = IdEx; ViewBag.ExpedienteFojas = BD.TraerLasExpFojas(IdEx); return(View()); }