public List<Application> GetAllApplications() { var list = new List<Application>(); using (var proxy = new SqlDataReaderProxy("[dbo].[SelectAllApplications]", CommandType.StoredProcedure)) { while (proxy.Read()) { var app = new Application { Id = (int)proxy["Id"], ApplicationName = proxy["ApplicationName"] as string, }; list.Add(app); } } return list; }
public List<Application> Any(Application request) { var dataStore = new DataStore(); return dataStore.GetAllApplications(); }