Ejemplo n.º 1
0
        public JsonResult InventoryReport()
        {
            var newReport = new InventoryReport();
            var status    = new ReportStatus();

            status.ReportLocation = newReport.RunReport();
            if (string.IsNullOrWhiteSpace(status.ReportLocation))
            {
                status.success = false;
            }
            else
            {
                status.success = true;
            }

            return(Json(status, JsonRequestBehavior.DenyGet));
        }