public ActionResult Index(int?page) { var list = _chuChaiService.FindBy(new KaoQinConditionDTO() { UserId = CurrentUserId, CreatedStartTime = GetConditionCreatedStartTime() }, page.HasValue ? page.Value : 1, 5); return(View(list)); }
// GET: Core/Weixin/ChuChai public ActionResult Index(DateTime?dateStart, DateTime?dateEnd, KaoQinStatusDTO?status, string userId, int?page) { var conditon = new KaoQinConditionDTO() { CreatedStartTime = DateTimeHelper.GetDateStart(dateStart), CreatedEndTime = DateTimeHelper.GetDateEnd(dateEnd), UserId = userId }; conditon.Statuses = new List <string>(); if (status.HasValue) { conditon.Statuses.Add(status.ToString()); } var list = _chuChaiService.FindBy(conditon, page.HasValue ? page.Value : 1, CustomDisplayExtensions.DefaultPageSize); ViewBag.Condition = conditon; return(View(list)); }