Esempio n. 1
0
 public async Task <ReadUserFeedbackDTO> GetUserFeedback(Guid sessionId, Guid userId)
 {
     return(ReadUserFeedbackDTO.CreateDTOFromBO(await _sessionFeedbackRepository.GetUserFeedback(sessionId, userId)));
 }
Esempio n. 2
0
 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)));
 }