private async Task <int> GetRegionId(Area area) { regionDb.Save(new Region { Name = area.Name, Code = area.Id.ToString() }); var region = await regionDb.Retrieve(area.Name); return(region.Id); }
private async Task <int> GetRegionId(League league) { regionDb.Save(new Region { Name = league.Country, Code = league.CountryCode }); var region = await regionDb.Retrieve(league.Country); return(region.Id); }