예제 #1
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(c => c.Id == id && c.AppUserId == userId));
 }
예제 #2
0
 public async Task <bool> ExistsByPrimaryKeyAsync(int keyValue)
 {
     return(await RepositoryDbSet.AnyAsync(e => e.CompanyFieldOfActivityId == keyValue));
 }
예제 #3
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(c => c.Id == id && c.Bill.WorkObject.AppUsersOnObject.Any(q => q.AppUserId == userId)));
 }
예제 #4
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(foodItemDepletedReport => foodItemDepletedReport.Id == id &&
                      foodItemDepletedReport.AppUserId == userId));
 }
예제 #5
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(userFavouriteProvider =>
                      userFavouriteProvider.Id == id && userFavouriteProvider.AppUserId == userId));
 }
예제 #6
0
 public async Task <bool> ExistsByPrimaryKeyAsync(int keyValue)
 {
     return(await RepositoryDbSet.AnyAsync(e => e.ProjectTypeId == keyValue));
 }
 public async Task <bool> SubjectsInScheduleExistForScheduleAsync(int scheduleId)
 {
     return(await RepositoryDbSet.AnyAsync(s => s.ScheduleId == scheduleId));
 }