public List <CountryModel> GetAll() { return(repoCountry.ReadAll().Select(x => new CountryModel { ID = x.ID, CountryName = x.CountryName }).ToList()); }
public List <CountryModel> GetAll() { return(repoCountry.ReadAll().Select(x => new CountryModel { ID = x.ID, CountryName = x.CountryName }).ToList()); }