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" }); }
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" }); }