public async Task <BancoResponse> SaveAsync(Banco banco) { try { await _bancoRepository.AddAsync(banco); await _unitOfWork.CompleteAsync(); return(new BancoResponse(banco)); } catch (Exception ex) { // Do some logging stuff // return new BancoResponse($"An error occurred when saving the banco: {ex.Message}"); return(new BancoResponse(_localizer["BancoErrorGrabando"] + ex.Message)); } }