public bool UpdateRegion(Region region) { throw new NotImplementedException(); }
public Region GetRegions(string regioncode) { int regionid = 0; bool parsed = Int32.TryParse(regioncode, out regionid); var region = new Region(); region = parsed ? _regionRepository.GetRegions().FirstOrDefault(r => r.RegionID == regionid) : _regionRepository.GetRegions() .FirstOrDefault(r => r.RegionCode.ToLower() == regioncode.ToLower()); return region; }
public int CreateRegion(Region region) { throw new NotImplementedException(); }