示例#1
0
        public ActionResult Create(GastosViewModels datos)
        {
            ViewBag.Title = "Ingresar Gastos";

            DBGastos dbgastos = new DBGastos();
            Gastos   gasto    = new Gastos(dbgastos);

            gasto.Save(datos);

            return(RedirectToAction("Index", "Gastos"));
        }