public bool UserIsMember(Guid confId, Guid userId) { var membership = _conferRepository.GetMemberships(confId); if (membership != null && membership.UserId == userId) { return(true); } else { return(false); } }