protected virtual async Task UpdateSupplier(CreateOrUpdateSupplierInput input) { var item = await _supplierRepo.GetAsync(input.Supplier.Id.Value); var dto = input.Supplier; item.SupplierName = dto.SupplierName; item.Address1 = dto.Address1; item.Address2 = dto.Address2; item.Address3 = dto.Address3; item.City = dto.City; item.State = dto.State; item.Country = dto.Country; item.ZipCode = dto.ZipCode; item.PhoneNumber1 = dto.PhoneNumber1; item.Email = dto.Email; item.FaxNumber = dto.FaxNumber; item.Website = dto.Website; item.DefaultCreditDays = dto.DefaultCreditDays; item.OrderPlacedThrough = dto.OrderPlacedThrough; item.TaxRegistrationNumber = dto.TaxRegistrationNumber; CheckErrors(await _supplierManager.CreateSync(item)); }