public ActionResult Editar(TiposDeGastosDTO tiposgastosDTO) { if (ModelState.IsValid) { _tiposgastos.ActualizarTipoGasto(tiposgastosDTO); return(RedirectToAction("Index")); } return(View()); }
public ActionResult Agregar(TiposDeGastosDTO tiposgastosDTO) { if (ModelState.IsValid) { _tiposgastos.AgregarTipogastos(tiposgastosDTO); return(RedirectToAction("Index")); } return(View()); }
public TiposDeGastosDTO ObtenerDatosBusqueda(int pagina, int resultadoporpagina, string textodebusqueda) { var tiposgastos = ObtenerTiposGastos(pagina, resultadoporpagina, textodebusqueda); TiposDeGastosDTO datos = new TiposDeGastosDTO(); datos.ListaTiposGasto = tiposgastos; datos.ConteoPagina = ContarTiposGastos(3, textodebusqueda); datos.paginasadescontar = ContarTiposGastos(3, textodebusqueda); datos.Indice = pagina; return(datos); }
public ActionResult pruebaguardar(TiposDeGastosDTO tiposgastosDTO) { return(View()); }