Ejemplo n.º 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");
    }
Ejemplo n.º 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/");
    }
Ejemplo n.º 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/");
    }