public static ProviderRateCollection Search(SearchFilter SearchKey) { ProviderRateCollection collection = new ProviderRateCollection(); using (var reader = SqlHelper.ExecuteReader("ARProviderRate_Search", SearchFilterManager.SqlSearchParam(SearchKey))) { while (reader.Read()) { ProviderRate obj = new ProviderRate(); obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }
public static ProviderRateCollection GetbyUser(string CreatedUser, int CompanyID) { ProviderRateCollection collection = new ProviderRateCollection(); ProviderRate obj; var sqlParams = new SqlParameter[] { new SqlParameter("@CreatedUser", CreatedUser), new SqlParameter("@CompanyID", CompanyID), }; using (var reader = SqlHelper.ExecuteReader("ARProviderRate_GetAll_byUser", sqlParams)) { while (reader.Read()) { obj = GetItemFromReader(reader); collection.Add(obj); } } return(collection); }