public async Task <ActionResult> SaveAsync(List <ExchangeRateViewModel> exchangeRates) { if (!ModelState.IsValid) { return(this.InvalidModelState(this.ModelState)); } if (exchangeRates == null || exchangeRates.Count().Equals(0)) { return(this.InvalidModelState(this.ModelState)); } var meta = await AppUsers.GetCurrentAsync().ConfigureAwait(true); int officeId = meta.OfficeId; string baseCurrency = meta.CurrencyCode; long id = await ExchangeRates.SaveAsync(this.Tenant, officeId, baseCurrency, exchangeRates).ConfigureAwait(false); return(this.Ok(id)); }