Example #1
0
        private void CreateAttributeMethod(object obj)
        {
            AttributeModel objAttributeModel = new AttributeModel()
            {
                AttributeName = this.AttributeName, AttributeTypeId = this.SelectedAttributeTypeItem.AttributeTypeId
            };

            isAttributeCreated = objDataAccess.AddAttribute(objAttributeModel);
            if (isAttributeCreated)
            {
                AttributeResult = "Attribute created successfully";
            }
            else
            {
                AttributeResult = "Attribute creation failed";
            }
            NotifyPropertyChanged("AttributeResult");
        }