public JsonResult GetApplyList(int page, int rows) { BussinessCateApplyQuery query = new BussinessCateApplyQuery(); query.PageNo = page; query.PageSize = rows; query.shopId = CurrentSellerManager.ShopId; var model = _iShopService.GetBusinessCateApplyList(query); var cate = model.Models.ToList().Select(a => new { Id = a.Id, ShopName = a.ShopName, ApplyDate = a.ApplyDate.ToString("yyyy-MM-dd HH:mm"), AuditedStatus = a.AuditedStatus.ToDescription() }); var p = new { rows = cate.ToList(), total = model.Total }; return(Json(p)); }
public JsonResult GetApplyList(int page, int rows, string shopName, Entities.BusinessCategoryApplyInfo.BusinessCateApplyStatus?status) { BussinessCateApplyQuery query = new BussinessCateApplyQuery(); query.PageNo = page; query.PageSize = rows; query.ShopName = shopName; query.Status = status; var model = _iShopService.GetBusinessCateApplyList(query); var cate = model.Models.ToList().Select(a => new { Id = a.Id, ShopName = a.ShopName, ApplyDate = a.ApplyDate.ToString("yyyy-MM-dd HH:mm"), AuditedStatus = a.AuditedStatus.ToDescription() }); var p = new { rows = cate.ToList(), total = model.Total }; return(Json(p)); }