Exemple #1
0
        public async Task <MessageModel <PageModel <Advertisement> > > Get(int page = 1, string key = "", int intPageSize = 50)
        {
            if (string.IsNullOrEmpty(key) || string.IsNullOrWhiteSpace(key))
            {
                key = "";
            }

            Expression <Func <Advertisement, bool> > whereExpression = a => a.Id > 0;

            return(new MessageModel <PageModel <Advertisement> >()
            {
                msg = "获取成功",
                success = true,
                response = await _advertisementServices.QueryPage(whereExpression, page, intPageSize)
            });
        }