protected void frmClassificationAttribute_ItemCommand(object sender, FormViewCommandEventArgs e)
        {
            DropDownList ddlAttributeSubType = (DropDownList)frmClassificationAttribute.FindControl("ddlAttributeSubType");
            DropDownList ddlAttributeType    = (DropDownList)frmClassificationAttribute.FindControl("ddlAttributeType");
            TextBox      txtAttributeValue   = (TextBox)frmClassificationAttribute.FindControl("txtAttributeValue");
            CheckBox     chkInternalOnly     = (CheckBox)frmClassificationAttribute.FindControl("chkInternalOnly");


            if (e.CommandName.ToString() == "Add")
            {
                TLGX_Consumer.MDMSVC.DC_Accomodation_ClassificationAttributes newObj = new MDMSVC.DC_Accomodation_ClassificationAttributes
                {
                    Accommodation_ClassificationAttribute_Id = Guid.NewGuid(),
                    Accommodation_Id = Guid.Parse(Request.QueryString["Hotel_Id"]),
                    Create_Date      = DateTime.Now,
                    Create_User      = System.Web.HttpContext.Current.User.Identity.Name,
                    IsActive         = true,
                    AttributeType    = ddlAttributeType.SelectedItem.ToString(),
                    AttributeSubType = ddlAttributeSubType.SelectedItem.ToString(),
                    AttributeValue   = txtAttributeValue.Text.Trim(),
                    InternalOnly     = chkInternalOnly.Checked
                };
                if (AccSvc.AddClassificationAttributes(newObj))
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop1", "javascript:closeClassificationAttributesModal();", true);
                    GetClassificationAttributeDetails();
                    frmClassificationAttribute.DataBind();
                    frmClassificationAttribute.ChangeMode(FormViewMode.Insert);
                    GetLookUpValues("Page", "");
                    BootstrapAlert.BootstrapAlertMessage(dvMsg, "Attribute has been added successfully", BootstrapAlertType.Success);
                }
                else
                {
                    BootstrapAlert.BootstrapAlertMessage(dvMsg, "Error Occurred", BootstrapAlertType.Warning);
                }
                hdnFlag.Value = "true";
            }


            if (e.CommandName.ToString() == "Modify")
            {
                Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]);
                Guid myRow_Id = Guid.Parse(frmClassificationAttribute.DataKey.Value.ToString());

                TLGX_Consumer.MDMSVC.DC_Accomodation_ClassificationAttributes newObj = new MDMSVC.DC_Accomodation_ClassificationAttributes
                {
                    Accommodation_ClassificationAttribute_Id = myRow_Id,
                    Accommodation_Id = Guid.Parse(Request.QueryString["Hotel_Id"]),
                    Edit_Date        = DateTime.Now,
                    Edit_User        = System.Web.HttpContext.Current.User.Identity.Name,
                    IsActive         = true,
                    AttributeType    = ddlAttributeType.SelectedItem.ToString(),
                    AttributeSubType = ddlAttributeSubType.SelectedItem.ToString(),
                    AttributeValue   = txtAttributeValue.Text.Trim(),
                    InternalOnly     = chkInternalOnly.Checked
                };

                if (AccSvc.UpdateClassificationAttributes(newObj))
                {
                    ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop2", "javascript:closeClassificationAttributesModal();", true);

                    Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]);

                    frmClassificationAttribute.ChangeMode(FormViewMode.Insert);
                    GetClassificationAttributeDetails();
                    frmClassificationAttribute.DataBind();
                    GetLookUpValues("Page", "");
                    BootstrapAlert.BootstrapAlertMessage(dvMsg, "Attribute has been updated successfully", BootstrapAlertType.Success);
                }
                else
                {
                    BootstrapAlert.BootstrapAlertMessage(dvMsg, "Error Occurred", BootstrapAlertType.Warning);
                }

                hdnFlag.Value = "true";
            }
            ;
        }