public void InsertUpdateProfileInfo(ArrayList Profile)
        {
            UserProfileStoredProcedure objeditprofile = new UserProfileStoredProcedure();
            Profile.Insert(14, Session["usersid"].ToString());
            objeditprofile.InsertUpdateProfileInfo(Profile);

        }
        public void UpdateUserDetail(ArrayList UserDetail)
        {
            CRM.DataAccess.AdministratorEntity.UserProfileStoredProcedure objupdateuserdetail = new CRM.DataAccess.AdministratorEntity.UserProfileStoredProcedure();
            UserDetail.Insert(6, Session["usersid"].ToString());
            objupdateuserdetail.UpdateUserDetails(UserDetail);

            
        }
        public string UpdateUserDetailValidation(ArrayList UserDetail, string s)
        {
            UserProfileStoredProcedure objupdateuserdetail = new UserProfileStoredProcedure();
            UserDetail.Insert(6, Session["usersid"].ToString());
            //objupdateuserdetail.UpdateUserDetail(UserDetail);

            System.Data.DataSet ds1 = objupdateuserdetail.CheckValidation();

            int j = 0;

            for (int i = 0; i < ds1.Tables[0].Rows.Count; i++)
            {

                if (ds1.Tables[0].Rows[i]["USER_NAME"].ToString().Equals(UserDetail[0]) || UserDetail[0].Equals(""))
                {
                    j = 1;
                    break;

                }

            }

            if (j == 0)
            {


                objupdateuserdetail.UpdateUserDetailValidation(UserDetail);
            }
            else if (j == 1)
            {


                System.Data.DataSet ds = objupdateuserdetail.UpdateUserDetailValidation(UserDetail);

                s = ds.Tables[0].Rows[0]["EMAIL_CHECKER"].ToString();
                if (s == "N")
                {

                }
                if (s == "Y")
                {

                }

            }
            else
            {

            }
            return s;

        }