Esempio n. 1
0
 public bool IsContributePending(int projectid, Guid userId)
 {
     if (Rels.Any(x => x.UserId == userId && x.pageId == projectid && x.relTypeId == 4 && x.Pending == true))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public bool IsContributeApproved(int projectid, int id)
 {
     if (Rels.Any(x => x.id == id && x.pageId == projectid && x.relTypeId == 4 && x.Approved == true))
     {
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 public bool IsWatched(int projectid, Guid userId)
 {
     return(Rels.Any(x => x.UserId == userId && x.pageId == projectid && x.relTypeId == 3));
 }