public List <CountryVM> Get() { var vms = _countryDal.Get() .Select(c => ToCountryVM(c)) .ToList(); return(vms); }
public static Country GetCountry(int countryID) { return(CountryDB.Get(countryID)); }
public bool Delete(int modelID) { Country country = _countryDAL.Get(a => a.ID == modelID); return(_countryDAL.Delete(country) > 0); }
public Country Get(int entityID) { return(_countryDAL.Get(a => a.ID == entityID)); }