public async Task <PagedListViewModel <DoohGeoLocationGroupViewModel> > GetDoohGeoLocationGroups([FromUri] Pagination pagination) { var doohGeoLocationGroups = await _doohService.GetDoohGeoLocationGroups().ToPagedListAsync(pagination).ConfigureAwait(false); var retVal = _mapping.Map <PagedListViewModel <DoohGeoLocationGroupViewModel> >(doohGeoLocationGroups); return(retVal); }
public static IQueryable <DoohGeoLocationGroup> GetDoohGeoLocationGroupsByIds(this IDoohService doohService, params int[] ids) { var source = doohService.GetDoohGeoLocationGroups(); return(source.Where(x => ids.Contains(x.DoohGeoLocationGroupId))); }