Exemplo n.º 1
0
        // 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);
        }