public FileResult ExportWithOpenXML([DataSourceRequest]DataSourceRequest request) { //Get the data representing the current grid state - page, sort and filter var products = new List<Product>(db.Products.ToDataSourceResult(request).Data as IEnumerable<Product>);
AssetMaintenanceRepository cmprep = new AssetMaintenanceRepository(Session["Connectionstring"].ToString()); var products = new List<MaintenanceReportSummary>( cmprep.GetMaintenanceSummary( new Guid(Session["CurrentCompanyId"].ToString()), new Guid(Session["AssetId"].ToString())) .ToDataSourceResult(request).Data as IEnumerable<MaintenanceReportSummary>); var products = cmprep.GetMaintenanceSummary( new Guid(Session["CurrentCompanyId"].ToString()), new Guid(Session["AssetId"].ToString())) .ToDataSourceResult(request);
pre
Telerik
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)