public IEnumerable <GetSalesByEmployeeByDivision_Result> GetSalesByEmployeeByDivision(DateTime startDate, DateTime endDate) { List <GetSalesByEmployeeByDivision_Result> result; using (var pandoraEntities = new PandoraEntities()) { result = pandoraEntities.GetSalesByEmployeeByDivision(startDate, endDate).ToList(); } return(result); }
public IEnumerable <KeyValueObject> GetCustomers() { using (var pandoraEntities = new PandoraEntities()) { return(pandoraEntities.Get_Customers.Select( customer => new KeyValueObject { Id = customer.CardCode, Name = customer.CardName }).ToList()); } }