Пример #1
0
        public async Task <IActionResult> GetByIds(string ids, int rowsPerPage = 0, int pageNumber = 1)
        {
            IEnumerable <string>  idsAsList = JsonConvert.DeserializeObject <IEnumerable <string> >(ids);
            PaginatedItems <Site> sites     = siteService.GetByIds(idsAsList, rowsPerPage, pageNumber);

            return(Ok(Mapper.Map <PaginatedItemsDto <SiteDetailsDto> >(sites)));
        }