protected void frmDynamicAttributeDetail_ItemCommand(object sender, FormViewCommandEventArgs e)
        {
            TextBox txtAttributeName        = (TextBox)frmDynamicAttributeDetail.FindControl("txtAttributeName");
            TextBox txtAttributeDescription = (TextBox)frmDynamicAttributeDetail.FindControl("txtAttributeDescription");

            //dvMsg.Style.Add("display", "none");
            if (e.CommandName.ToString() == "Add")
            {
                TLGX_Consumer.MDMSVC.DC_DynamicAttributes newObj = new MDMSVC.DC_DynamicAttributes()
                {
                    DynamicAttribute_Id = Guid.NewGuid(),
                    Object_Id           = new Guid(Request.QueryString["Hotel_Id"]),
                    ObjectSubElement_Id = new Guid(Request.QueryString["Hotel_Id"]),
                    AttributeName       = txtAttributeName.Text,
                    AttributeValue      = txtAttributeDescription.Text,
                    ObjectType          = "Hotel",
                    AttributeClass      = "HotelProperty",
                    IsActive            = true,
                    Create_Date         = DateTime.Now,
                    Create_User         = System.Web.HttpContext.Current.User.Identity.Name
                };

                if (AccSvc.AddHotelDynamicAttributes(newObj))
                {
                    frmDynamicAttributeDetail.ChangeMode(FormViewMode.Insert);
                    frmDynamicAttributeDetail.DataBind();
                    GetAllHotelAttributes();
                    BootstrapAlert.BootstrapAlertMessage(dvMsgDynamicAttributesForHotel, "Dynamic Attributes has been added successfully", BootstrapAlertType.Success);
                }
                else
                {
                    BootstrapAlert.BootstrapAlertMessage(dvMsgDynamicAttributesForHotel, "Error Occurred", BootstrapAlertType.Warning);
                }
            }


            if (e.CommandName.ToString() == "Save")
            {
                Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]);
                Guid myRow_Id = Guid.Parse(grdDynamicAttributeList.SelectedDataKey.Value.ToString());

                var result = AccSvc.GetHotelDynamicAttributes(Accomodation_ID, Accomodation_ID, myRow_Id);

                if (result.Count > 0)
                {
                    TLGX_Consumer.MDMSVC.DC_DynamicAttributes newObj = new MDMSVC.DC_DynamicAttributes
                    {
                        DynamicAttribute_Id = myRow_Id,
                        Object_Id           = Accomodation_ID,
                        AttributeName       = txtAttributeName.Text,
                        AttributeValue      = txtAttributeDescription.Text,
                        ObjectType          = result[0].ObjectType,
                        AttributeClass      = result[0].AttributeClass,
                        ObjectSubElement_Id = result[0].ObjectSubElement_Id,
                        IsActive            = true,
                        Edit_Date           = DateTime.Now,
                        Edit_User           = System.Web.HttpContext.Current.User.Identity.Name
                    };

                    if (AccSvc.UpdateHotelDynamicAttributes(newObj))
                    {
                        frmDynamicAttributeDetail.ChangeMode(FormViewMode.Insert);
                        frmDynamicAttributeDetail.DataBind();
                        GetAllHotelAttributes();
                        BootstrapAlert.BootstrapAlertMessage(dvMsgDynamicAttributesForHotel, "Dynamic Attributes has been updated successfully", BootstrapAlertType.Success);
                    }
                    else
                    {
                        BootstrapAlert.BootstrapAlertMessage(dvMsgDynamicAttributesForHotel, "Error Occurred", BootstrapAlertType.Warning);
                    }
                }
            }
            ;
        }