示例#1
0
        public async Task <IActionResult> Diseases(UserParams userParams)
        {
            var diseases = await _adminRepo.GetDiseases(userParams);

            var diseasesToReturn = _adminMapper.Map <IEnumerable <SharedDiseasesList> >(diseases);

            Response.AddPagination(diseases.CurrentPage, diseases.PageSize, diseases.TotalCount, diseases.TotalPages);

            return(Ok(diseasesToReturn));
        }