示例#1
0
        public JsonResult DeleteCustomReport(string report)
        {
            if (string.IsNullOrEmpty(report))
            {
                return(new JsonResult {
                    Data = "Report name is required."
                });
            }

            var m = new CustomReportsModel(CurrentDatabase);

            m.DeleteReport(report);

            return(new JsonResult {
                Data = "success"
            });
        }
示例#2
0
        public JsonResult DeleteCustomReport(int?orgId, string reportName)
        {
            if (string.IsNullOrEmpty(reportName))
            {
                return new JsonResult {
                           Data = "Report name is required."
                }
            }
            ;

            var m = new CustomReportsModel(DbUtil.Db, orgId);

            m.DeleteReport(reportName);

            return(new JsonResult {
                Data = "success"
            });
        }