public ActionResult UsedRecord() { int pageIndex = 0; if (!int.TryParse(Request.Params["page"], out pageIndex)) { pageIndex = 1; } ; string code = Request["txtSearch"]; code = string.IsNullOrEmpty(code) ? code : code.Trim(); UsedRecordQuery query = new UsedRecordQuery(); query.PageInfo.PageIndex = pageIndex; query.PageInfo.PageSize = 10; query.Code = code; query.CustomerSysNo = this.CurrUser.UserSysNo; var result = GiftCardFacade.QueryUsedRecord(query); return(View(result)); }