Exemplo n.º 1
0
 public virtual async Task <bool> IsCommonCategoryAsync(Guid categoryId)
 {
     return(await _categoryOwnerRepository.FindAsync(x => x.CategoryId == categoryId && x.OwnerUserId == null) != null);
 }
 public virtual async Task <CategoryOwner> FindCategoryOwnerAsync(Guid categoryId, Guid?ownerUserId)
 {
     return(await _categoryOwnerRepository.FindAsync(x =>
                                                     x.CategoryId == categoryId && x.OwnerUserId == ownerUserId));
 }