public decimal TotalIngresosEnEfectivo() { using (var context = new CCEntities()) { var ingresosDA = new IngresoDataAccess(context); return(ingresosDA.TotalIngresosEn(1)); } }
public decimal TotalIngresosEnCajaDeAhorro() { using (var context = new CCEntities()) { var ingresosDA = new IngresoDataAccess(context); return(ingresosDA.TotalIngresosEn(2)); } }
public IEnumerable <IngresoListViewModel> GetIngresos(IngresoQuery query) { using (var context = new CCEntities()) { var ingresoDA = new IngresoDataAccess(context); return(ingresoDA.GetIngresos(query)); } }
public Ingreso GetById(int id) { using (var context = new CCEntities()) { var ingresoDA = new IngresoDataAccess(context); var ingreso = ingresoDA.GetById(id); return(ingreso); } }
public static Person Ingreso(IngresoImportModel model) { Person userReturn = IngresoDataAccess.Ingreso(model); bool retorno = false; if (model.isAlumn && userReturn is Alumn) { retorno = true; } else if (!model.isAlumn && userReturn is Admin) { retorno = true; } if (retorno) { return(userReturn); } else { return(null); } }