public async Task <IActionResult> Update(TransferJsonModel transferJson) { if (transferJson == null) { return(BadRequest()); } if (!_transferRepository.Exists(transferJson.Id)) { return(NotFound()); } var transfer = _mapper.Map <TransferJsonModel, Transfer>(transferJson); await _transferRepository.Update(transfer); return(Ok()); }