コード例 #1
0
 public ActionResult Editar(TiposDeGastosDTO tiposgastosDTO)
 {
     if (ModelState.IsValid)
     {
         _tiposgastos.ActualizarTipoGasto(tiposgastosDTO);
         return(RedirectToAction("Index"));
     }
     return(View());
 }
コード例 #2
0
        public ActionResult Agregar(TiposDeGastosDTO tiposgastosDTO)
        {
            if (ModelState.IsValid)
            {
                _tiposgastos.AgregarTipogastos(tiposgastosDTO);

                return(RedirectToAction("Index"));
            }

            return(View());
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 public ActionResult pruebaguardar(TiposDeGastosDTO tiposgastosDTO)
 {
     return(View());
 }