Пример #1
0
        protected void btnissdelete_ServerClick(object sender, EventArgs e)
        {
            Dataservice.DatamanagementClient findata = new Dataservice.DatamanagementClient();
            Chatmanagement.ChatClient        chat    = new Chatmanagement.ChatClient();
            chat.Open();
            UserData user = (UserData)Session["User"];

            findata.Open();

            int deletechat    = chat.deleteissuechat(pid);
            int deleteissnoti = findata.deleteissnoticeiss(pid);
            int deleteissteam = findata.deleteissteam(pid);
            int iss           = findata.deleteissue(pid);

            if (iss == 1)
            {
                changePagedelete();
            }
            else
            {
                changePageerror();
            }

            findata.Close();
            chat.Close();
        }