public async Task <TreatmentResponse> SaveAsync(Treatment treatment) { try { await _treatmentRepository.AddAsync(treatment); await _unitOfWork.CompleteAsync(); return(new TreatmentResponse(treatment)); } catch (Exception ex) { return(new TreatmentResponse($"An error ocurred while saving treatment: {ex.Message}")); } }