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")); } }
public ActionResult MostrarTProd() { oDeptoDAL = new DeptoDAL(); return(PartialView(oDeptoDAL.Mostrar())); }