Пример #1
0
    protected void AcceptSwapBut_Click(object sender, ImageClickEventArgs e)
    {
        Guid      requestGuid = Guid.Parse(RequestGuidLabel.Text);
        UserClass uc          = new UserClass(Profile.UserName);

        if (uc.AcceptSwapRequest(requestGuid))
        {
            Response.Redirect("~/MyProfile/MyProfile.aspx");
        }
        else
        {
            Response.Redirect("~/Errors/AcceptSwapError.aspx");
        }
    }