public async Task <Study> GetForDatasetCreationNoAccessCheckAsync(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFound(StudyBaseQueries.StudyDatasetCreationQueryable(_db), studyId));
 }
 public async Task <Study> GetForDatasetCreationAsync(int studyId, UserOperation operation)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyDatasetCreationQueryable(_db), studyId, operation));
 }
 public async Task <Study> GetForParticpantOperationsAsync(int studyId, UserOperation operation, string roleBeingAddedOrRemoved = null)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyParticipantOperationsQueryable(_db), studyId, operation, roleBeingAddedOrRemoved));
 }
 public async Task <Study> GetWithParticipantsAndUsersNoAccessCheck(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFound(StudyBaseQueries.ActiveStudiesWithParticipantsAndUserQueryable(_db), studyId));
 }
 public async Task <Study> GetForStudyDetailsAsync(int studyId)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.StudyDetailsQueryable(_db), studyId, UserOperation.Study_Read));
 }
 public async Task <Study> GetByIdAsync(int studyId, UserOperation userOperation)
 {
     return(await GetStudyFromQueryableThrowIfNotFoundOrNoAccess(StudyBaseQueries.ActiveStudiesWithParticipantsQueryable(_db), studyId, userOperation));
 }