public virtual int GetCount(Guid activityId) { var count = _commentsRepository.Count(comment => comment.ActivityId == activityId); return((int)count); }
public virtual int GetMembersCount(Guid groupId) { return((int)_groupMemberRepository.Count(gm => gm.GroupId == groupId)); }
public virtual int GetCount(Guid entityId) { return((int)_likesRepository.Count(l => l.EntityId == entityId)); }
public long Count(Expression <Func <IntranetActivityEntity, bool> > expression) { return(_sqlRepository.Count(expression)); }