Esempio n. 1
0
 public SessionDetailsModel GetSession(int id)
 {
     try
     {
         return(sessionsService.GetSession(id));
     }
     catch (ApiException)
     {
         throw;
     }
     catch (Exception exception)
     {
         throw new ApiException(exception.GetExceptionMessage());
     }
 }
 public Session GetSession([FromRoute] Guid sessionId)
 {
     return(_sessionsService.GetSession(sessionId));
 }