private IEnumerable <CallModel> GetCallsForBill(int id, int month, int year) { var calls = new List <CallModel>(); var dbCalls = ARepo.GetCallsForLineForMonth(id, month, year); calls = ConvertDbToProgram.ConvertCall(dbCalls).ToList(); return(calls); }
private IEnumerable <SMSModel> GetSmssForBill(int id, int month, int year) { var smss = new List <SMSModel>(); var dbSMSs = ARepo.GetSMSsForLineForMonth(id, month, year); smss = ConvertDbToProgram.ConvertSMS(dbSMSs).ToList(); return(smss); }
private IEnumerable <CustomerModel> GetAllCustomers() { List <CustomerModel> allCustomers = new List <CustomerModel>(); List <CustomerEntity> allCustomersFromDb = new List <CustomerEntity>(); allCustomersFromDb = URepo.GetAllCustomers().ToList(); allCustomers = ConvertDbToProgram.ConvertCustomer(allCustomersFromDb).ToList(); return(allCustomers); }