// GET api/<controller> public DataSourceResult Get([FromUri] DataSourceRequest request) { var grid = new DataSourceResult(); try { ItemTableBLL bll = new ItemTableBLL(); grid = bll.GetDapperDataSource(request); } catch (Exception ex) { grid.Errors = "加载出错!"; log.Info(ex); } return(grid); }