public async Task <IHttpActionResult> GetIntentionListAsync(int page, int pageSize, string keyword = "", string intention = "", string orderBy = "") { var intentions = StringProvider.SpiltToNumbers <int>(",", intention); var pageList = await this.m_IntentionStorage.GetPagedListAsync(page, pageSize, keyword ?? "", intentions, orderBy); var data = new { list = pageList.RowSet.Select(i => new { i.id, i.name, i.phone, i.intention, i.useragent, i.remark, intention_text = GetIntentionText(i.intention), i.created }), count = pageList.Count }; return(Json(JsonApiResult.Ok(data))); }