Пример #1
0
        public ActionResult ExportToExcel(int?reportMode, int?TopSellingFilterBy, int?SelectedProduct)
        {
            ReportViewModel result = ReportViewModel.ExecuteCreate(TopSellingFilterBy, SelectedProduct);

            if (result != null)
            {
                result.GenerateReport(reportMode, TopSellingFilterBy, HttpContext.ApplicationInstance);
            }
            else
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            return(View(result));
        }