Example #1
0
    public static string Save(string rqmtDescriptionType, string rqmtDescription)
    {
        Dictionary <string, string> result = new Dictionary <string, string>()
        {
            { "saved", "false" }, { "exists", "false" }, { "newID", "0" }, { "error", "" }
        };

        try
        {
            int rqmtDescriptionType_ID = 0;

            int.TryParse(rqmtDescriptionType, out rqmtDescriptionType_ID);

            result = RQMT.RQMTDescription_Save(RQMTDescriptionTypeID: rqmtDescriptionType_ID, RQMTDescription: rqmtDescription);
        }
        catch (Exception ex)
        {
            LogUtility.LogException(ex);

            result["error"] = ex.Message;
        }

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