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); }
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); }
public bool IsWatched(int projectid, Guid userId) { return(Rels.Any(x => x.UserId == userId && x.pageId == projectid && x.relTypeId == 3)); }