public static string DeleteRQMTDescription(string rqmtDescription) { Dictionary <string, string> result = new Dictionary <string, string>() { { "deleted", "" }, { "error", "" } }; bool deleted = false; string errorMsg = string.Empty; try { int RQMTDescription_ID = 0; int.TryParse(rqmtDescription, out RQMTDescription_ID); deleted = RQMT.RQMTDescription_Delete(RQMTDescriptionID: RQMTDescription_ID); } catch (Exception ex) { LogUtility.LogException(ex); deleted = false; errorMsg = ex.Message; } result["deleted"] = deleted.ToString(); result["error"] = errorMsg; return(JsonConvert.SerializeObject(result, Newtonsoft.Json.Formatting.None)); }