public async Task <PagedListViewModel <DoohPanelLocationViewModel> > GetDoohPanelLocations([FromUri] Pagination pagination) { var doohPanelLocations = await _doohService.GetDoohPanelLocations().ToPagedListAsync(pagination).ConfigureAwait(false); var retVal = _mapping.Map <PagedListViewModel <DoohPanelLocationViewModel> >(doohPanelLocations); return(retVal); }
public static IQueryable <DoohPanelLocation> GetDoohPanelLocationsByIds(this IDoohService doohService, params int[] ids) { var source = doohService.GetDoohPanelLocations(); return(source.Where(x => ids.Contains(x.DoohPanelLocationId))); }