public IEnumerable <Region> GetAll(RegionArgs args) { using (var repo = new NHGetAllRepository <Region>()) { var query = repo.GetAll(); if (args.Country.IsNotEmpty()) { query = query.Where(x => x.Country.Name == args.Country); } return(query.AsEnumerable()); } }
public IEnumerable <Region> GetAll([FromUri] RegionArgs args) { return(regionService.GetAll(args)); }
public IEnumerable <Region> GetAll(RegionArgs args) { return(regionStorage.GetAll(args)); }