よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
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)); }