public async Task <IActionResult> GetAllAsync() { var countries = await _countryManager.GetAllAsync(); var countryDtos = _mapper.Map <IEnumerable <CountryDto> >(countries); var links = new CollectionLinks() { Self = HttpContext.Request.Path }; return(Ok(new ResourceResponse() { Links = links, Data = countryDtos })); }