コード例 #1
0
        private static IlevusUser RetrieveUserByService(Guid serviceId)
        {
            IlevusDBContext db = IlevusDBContext.Create();

            return(db.GetUsersCollection()
                   .Find(x => x.Professional.Services
                         .Any(y => y.Id == serviceId))
                   .FirstOrDefault());
        }