예제 #1
0
        public ActionResult EditarFamiliar(FamiliarVM f)
        {
            GestionFamiliar g = new GestionFamiliar();

            g.EditarFamiliares(f.Familiar);
            return(RedirectToAction("ListarFamiliares", "Familiar" /*, new { c = pro.Alimento.Sucursal, pro = pro.Alimento.ProveedorC }*/));
        }
예제 #2
0
        public ActionResult AgregarFamiliar(FamiliarVM f)
        {
            GestionFamiliar g = new GestionFamiliar();

            g.AgregarFamiliares(f.Familiar);
            return(RedirectToAction("ListarFamiliares"));
        }
예제 #3
0
        public ActionResult EditarFamiliar(string c)
        {
            GestionFamiliar g = new GestionFamiliar();
            FamiliarVM      p = new FamiliarVM();

            p.Familiar = g.BuscarFamiliares(c);
            return(View("EditarFamiliar", p));
        }