public async Task <AjaxResult> GetPagingData([FromUri] int _pageIndex, int _pageSize) { var _ajaxResult = new AjaxResult(); try { _ajaxResult.Data = _refBL.GetPagingData(_pageIndex, _pageSize); } catch (Exception ex) { _ajaxResult.Success = false; _ajaxResult.Message = Resources.errorVN; _ajaxResult.Data = ex; } return(_ajaxResult); }
public async Task <AjaxResult> GetRefs1([FromUri] int pageIndex, int pageSize) { await Task.Delay(500); var _ajaxResult = new AjaxResult(); try { _ajaxResult.Data = _refBL.GetPagingData(pageIndex, pageSize); } catch (Exception ex) { _ajaxResult.Success = false; _ajaxResult.Message = "fail"; _ajaxResult.Data = ex; } return(_ajaxResult); }