public string GetMyOrders(int page, int limit, string queryInfo) { string userId = HttpContext.Session.GetString("UserId"); if (string.IsNullOrEmpty(userId)) { return("未登录!或登录已失效"); } if (!string.IsNullOrEmpty(queryInfo)) { queryInfo = queryInfo.Trim(); } int count; IEnumerable <DemandOrderOutput> Orders = _orderManageService.GetMyDemandOrders(page, limit, out count, queryInfo, userId); DataResult <IEnumerable <DemandOrderOutput> > data = new DataResult <IEnumerable <DemandOrderOutput> > { msg = "获取成功!", code = 0, count = count, data = Orders }; return(JsonNetHelper.SerialzeoJsonForCamelCase(data)); }