// fetch all from table into new List of class instances, filtered by any column // links: // docLink: http://sql2x.org/documentationLink/db27658d-4d23-46d7-9970-7bbaef8634b0 public List <CrudeTimezoneModel> FetchWithFilter(System.Guid timezoneId, string timezoneName, string utcOffset, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeTimezoneModel>(); List <CrudeTimezoneData> dataList = CrudeTimezoneData.FetchWithFilter(timezoneId, timezoneName, utcOffset, userId, dateTime); foreach (CrudeTimezoneData data in dataList) { var crudeTimezoneBusinessModel = new CrudeTimezoneModel(); DataToModel(data, crudeTimezoneBusinessModel); list.Add(crudeTimezoneBusinessModel); } return(list); }
// fetch all rows from table into new List of Contracts, filtered by any column // links: // docLink: http://sql2x.org/documentationLink/ce01ef4a-5cd0-4e51-b211-9c0a15b791a0 public List <CrudeTimezoneContract> FetchWithFilter(System.Guid timezoneId, string timezoneName, string utcOffset, System.Guid userId, System.DateTime dateTime) { var list = new List <CrudeTimezoneContract>(); List <CrudeTimezoneData> dataList = CrudeTimezoneData.FetchWithFilter( timezoneId: timezoneId, timezoneName: timezoneName, utcOffset: utcOffset, userId: userId, dateTime: dateTime ); foreach (CrudeTimezoneData data in dataList) { var crudeTimezoneContract = new CrudeTimezoneContract(); DataToContract(data, crudeTimezoneContract); list.Add(crudeTimezoneContract); } return(list); }