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