예제 #1
0
        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);
        }
예제 #2
0
        public static IQueryable <DoohGeoLocationGroup> GetDoohGeoLocationGroupsByIds(this IDoohService doohService, params int[] ids)
        {
            var source = doohService.GetDoohGeoLocationGroups();

            return(source.Where(x => ids.Contains(x.DoohGeoLocationGroupId)));
        }