public async Task UpdateAddressInformation(AddressInformationViewModel model) { model.IdCard.DocumentType = KycDocumentTypes.IdCard; await _srvKycManager.ChangeCityAsync(CurrentClientId, model.City, RecordChanger.Client); await _srvKycManager.ChangeAddressAsync(CurrentClientId, model.Address, RecordChanger.Client); await _srvKycManager.ChangeZipAsync(CurrentClientId, model.Zip, RecordChanger.Client); await _authenticationActionHandler.UploadFileAsync(model.IdCard, CurrentClientId); }
public ActionResult Index() { var fields = Fields .Where(field => field.AppliesToPage(PageName.AddressInformation)) .OrderBy(field => field.FieldOrder()); var model = new AddressInformationViewModel { Fields = fields }; return(View(model)); }
public async Task <IActionResult> Information(string address) { var transactions = await _nodeCommunicator.GetTransactions(address); var orderedTransactions = transactions.OrderByDescending(b => b.BlockIndex); var balance = await _nodeCommunicator.GetBalance(address, 0); var model = new AddressInformationViewModel { Transactions = orderedTransactions.ToList(), Balance = balance, Address = address }; return(View(model)); }
public async Task <ActionResult> AddressInformation(AddressInformationViewModel model) { await _profileActionHandler.UpdateAddressInformation(model); return(RedirectToAction("ProofOfAddress", new { returnUrl = model.ReturnUrl })); }