Beispiel #1
0
    public static string DeleteView(int viewID, int REPORT_TYPEID)
    {
        Dictionary <string, string> result = new Dictionary <string, string>()
        {
            { "deleted", "false" }, { "error", "" }
        };
        bool   deleted  = false;
        string errorMsg = string.Empty;

        try
        {
            if (viewID > 0)
            {
                deleted = Filtering.DeleteReportView(viewID, REPORT_TYPEID, out errorMsg);
            }
        }
        catch (Exception ex)
        {
            LogUtility.LogException(ex);
            deleted = false;
        }

        result["deleted"] = deleted.ToString();
        result["error"]   = errorMsg;

        return(JsonConvert.SerializeObject(result, Newtonsoft.Json.Formatting.None));
    }