BExIS.Web.Shell.Areas.RPM.Controllers.DataStructureEditController._getVariableElement C# (CSharp) Method

_getVariableElement() public method

public _getVariableElement ( long attributeId, string variableName ) : System.Web.Mvc.ActionResult
attributeId long
variableName string
return System.Web.Mvc.ActionResult
        public ActionResult _getVariableElement(long attributeId, string variableName)
        {
            variableName = Server.UrlDecode(variableName);
            MessageModel validateVariable = MessageModel.validateAttributeDelete(attributeId);
            if (validateVariable.hasMessage && validateVariable.CssId == "0")
            {
                return PartialView("_messageWindow", validateVariable);
            }
            else
            {
                AttributePreviewStruct variableElement = new VariablePreviewStruct().fill(attributeId);
                variableElement.Name = variableName;
                return PartialView("_variableElement", variableElement);
            }
        }