Exemple #1
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(c => c.Id == id && c.AppUserId == userId));
 }
Exemple #2
0
 public async Task <bool> ExistsByPrimaryKeyAsync(int keyValue)
 {
     return(await RepositoryDbSet.AnyAsync(e => e.CompanyFieldOfActivityId == keyValue));
 }
Exemple #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)));
 }
Exemple #4
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(foodItemDepletedReport => foodItemDepletedReport.Id == id &&
                      foodItemDepletedReport.AppUserId == userId));
 }
Exemple #5
0
 public async Task <bool> BelongsToUserAsync(int id, int userId)
 {
     return(await RepositoryDbSet
            .AnyAsync(userFavouriteProvider =>
                      userFavouriteProvider.Id == id && userFavouriteProvider.AppUserId == userId));
 }
Exemple #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));
 }