Beispiel #1
0
        public ActionResult InsertarExpedienteFojas(string Accion, int IdEx)
        {
            ViewBag.Accion = Accion;
            ExpedienteFojas Expf = new ExpedienteFojas();

            Expf.IdExpediente = IdEx;
            return(View(Expf));
        }
Beispiel #2
0
        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"));
        }
Beispiel #3
0
 public ActionResult ABMExpedienteFojas(ExpedienteFojas Expf, int IdEx)
 {
     ViewBag.IdExpediente    = IdEx;
     ViewBag.ExpedienteFojas = BD.TraerLasExpFojas(IdEx);
     return(View());
 }