public async Task <ReadUserFeedbackDTO> GetUserFeedback(Guid sessionId, Guid userId) { return(ReadUserFeedbackDTO.CreateDTOFromBO(await _sessionFeedbackRepository.GetUserFeedback(sessionId, userId))); }
public async Task <IEnumerable <ReadUserFeedbackDTO> > GetLastFeedbacksForSession(Guid sessionId, UserRate?rate) { if (!rate.HasValue) { return((await _sessionFeedbackRepository.GetLastFeedbacksForSession(sessionId)).Select(bo => ReadUserFeedbackDTO.CreateDTOFromBO(bo))); } return((await _sessionFeedbackRepository.GetLastFeedbacksForSessionByRate(sessionId, rate.Value)).Select(bo => ReadUserFeedbackDTO.CreateDTOFromBO(bo))); }