Beispiel #1
0
        public async Task <ExperienceResponse> SaveAsync(Experience experience)
        {
            try
            {
                await _experienceRepository.AddAsync(experience);

                await _unitOfWork.CompleteAsync();

                return(new ExperienceResponse(experience));
            }
            catch (Exception ex)
            {
                return(new ExperienceResponse($"An error ocurred while saving experience:{ ex.Message}"));
            }
        }