Esempio n. 1
0
 public ActionResult Agregar(string depto)
 {
     oDeptoDAL = new DeptoDAL();
     if (ModelState.IsValid)
     {
         int Resp = 0; Resp = oDeptoDAL.Agregar(depto);
         if (Resp == 1)
         {
             return(RedirectToAction("TipoProducto", "TipoProducto"));
         }
         else
         {
             return(RedirectToAction("Inicio", "Admin"));
         }
     }
     else
     {
         return(RedirectToAction("Inicio", "Admin"));
     }
 }
Esempio n. 2
0
 public ActionResult MostrarTProd()
 {
     oDeptoDAL = new DeptoDAL();
     return(PartialView(oDeptoDAL.Mostrar()));
 }