Exemplo n.º 1
0
        public IActionResult Get([FromBody] CustomDataSourceRequest request)
        {
            try
            {
                var orgUnits = _organizationUnitProvider.GetListOrganizationUnit();

                DataSourceRequest req = GridUtilities.ConvertToKendoFromCustomRequest(request);

                var filter = orgUnits.ToDataSourceResult(req);

                return(Ok(filter));
            }

            catch (Exception ex)
            {
                throw;
            }
        }