public async Task UpdateBankUrl(UpdateBankUrlViewModel request, CancellationToken cancellationToken = default) { var entity = await _context.Banks.FindAsync(request.BankId); if (entity == null) { throw new NotFoundException(nameof(Bank), request.BankId); } var mappedEntity = request.Map(entity); _context.Banks.Update(mappedEntity); await _context.SaveChangesAsync(cancellationToken); }
public async Task <ActionResult> UpdateBankUrl(UpdateBankUrlViewModel model) { await _bankManagement.UpdateBankUrl(model); return(Ok()); }