Пример #1
0
        public IActionResult KendoReadSalesOrderDetail([DataSourceRequest] DataSourceRequest request, DateTime?month = null)
        {
            int?monthValue = null;
            int?yearValue  = null;

            if (month != null)
            {
                monthValue = month.Value.Month;
                yearValue  = month.Value.Year;
            }
            return(Json(CustomRepository.GetSalesOrderDetailList(monthValue, yearValue).ToDataSourceResult(request)));
        }