Ejemplo n.º 1
0
        public async Task <FundResponse> UpdateAsync(Fund fund)
        {
            try
            {
                _fundsRepository.Update(fund);
                await _unitOfWork.CompleteAsync();

                return(new FundResponse(fund));
            }
            catch (Exception ex)
            {
                return(new FundResponse($"An error occurred when updating the fund: {ex.Message}"));
            }
        }