Priya.InfoList.JsonDataRefTypeService.DeleteDataRefType C# (CSharp) Method

DeleteDataRefType() private method

private DeleteDataRefType ( long dataRefTypeId ) : JsonObject
dataRefTypeId long
return JsonObject
        public JsonObject DeleteDataRefType(long dataRefTypeId)
        {
            var retMessage = new JsonObject();

            string message;
            bool success = DataCommon.DeleteCnsDataRefType(dataRefTypeId, out message);
            if (success)
            {
                retMessage.Put("message", "Successfully Deleted DataRefType");
            }
            else
            {
                if (message.Trim().Length == 0) message = "Error in Deleting DataRefType";
                retMessage.Put("error", message);
            }

            return retMessage;
        }
        #endregion