/// <summary> /// 获取访问日志列表 /// </summary> /// <param name="GalleryID"></param> /// <returns></returns> public Pager<AccessLog> GetArtistListByGalleryID(AccessLogQuery query) { Pager<AccessLog> accessLogList = null; using (MongoDBHelper mongoHelper = new MongoDBHelper(null, true)) { accessLogList = mongoHelper.GetAll<AccessLog>(EnumMongoDBTable.AccessLog.ToString(), null, query.PageSize, query.CurrentPage, SortBy.Ascending("LogDateTime"), null); if (accessLogList == null) { accessLogList = new Pager<AccessLog>(); } } return accessLogList; }
/// <summary> /// 获取访问日志列表 /// </summary> /// <param name="GalleryID"></param> /// <returns></returns> public Pager <AccessLog> GetArtistListByGalleryID(AccessLogQuery query) { Pager <AccessLog> accessLogList = null; using (MongoDBHelper mongoHelper = new MongoDBHelper(null, true)) { accessLogList = mongoHelper.GetAll <AccessLog>(EnumMongoDBTable.AccessLog.ToString(), null, query.PageSize, query.CurrentPage, SortBy.Ascending("LogDateTime"), null); if (accessLogList == null) { accessLogList = new Pager <AccessLog>(); } } return(accessLogList); }