public async Task <ActionResult <IEnumerable <CountriestoListDto> > > GetCountries() { var Countries = await _projectRepository.GetAllCountryNamesAsync(); var Countriesval = _mapper.Map <IEnumerable <CountriestoListDto> >(Countries); return(Ok(Countriesval)); }