Пример #1
0
    protected void btnZatwierdz_Click(object sender, EventArgs e)
    {
        Wysylka   wy     = CreateSend();
        SendModel model1 = new SendModel();

        lblResult.Text = model1.InsertSend(wy);
        List <Koszyk> carts = (List <Koszyk>)Session[User.Identity.GetUserId()];
        CartModel     model = new CartModel();

        model.MarkOrdersAsPaid(carts);
        Session[User.Identity.GetUserId()] = null;
        Response.Redirect("~/Pages/Zakonczenie.aspx");
    }
Пример #2
0
    protected void ImageButton13_Click(object sender, ImageClickEventArgs e)
    {
        Wysylka   wy     = CreateSend();
        SendModel model1 = new SendModel();

        lblResult.Text = model1.InsertSend(wy);
        List <Koszyk> carts = (List <Koszyk>)Session[User.Identity.GetUserId()];
        CartModel     model = new CartModel();

        model.MarkOrdersAsPaid(carts);
        Session[User.Identity.GetUserId()] = null;
        Response.Redirect("https://www.mbank.pl/indywidualny/");
    }
Пример #3
0
    protected void ImageButton14_Click(object sender, ImageClickEventArgs e)
    {
        Wysylka   wy     = CreateSend();
        SendModel model1 = new SendModel();

        lblResult.Text = model1.InsertSend(wy);
        List <Koszyk> carts = (List <Koszyk>)Session[User.Identity.GetUserId()];
        CartModel     model = new CartModel();
        Koszyk        id    = new Koszyk();

        Literal1.Text = Convert.ToString(id.ID);
        model.MarkOrdersAsPaid(carts);
        Session[User.Identity.GetUserId()] = null;
        Response.Redirect("https://www.aliorbank.pl/");
    }