public Task <CountryDto> GetCountry(int id) { var country = _readOnlyService.Repository <Country>().Get(i => i.AutoId == id).FirstOrDefault(); var countryDto = LocationMapper.EntityToDto(country); var provinces = _readOnlyService.Repository <Province>().Get(i => i.CountryId == id).ToList(); countryDto.Provinces = LocationMapper.EntityToDtos(provinces).ToList(); return(Task.FromResult(countryDto)); }