I'm working on a asp.net MVC application, I have a list of selected Items from a Products Table that contains(ProductName, Price);

I have 2 buttons, one that clears one item(working)

DeleteOneItem Partial View:

```
@using (Ajax.BeginForm("DeleteItemCheckbox", "Home", new AjaxOptions() { 
 UpdateTargetId = "div_print", InsertionMode = InsertionMode.Replace }))
        {
    <input type="number" name="ProductId" hidden value="@item.ProductId" />
    <div>Product Name :   @item.ProductName    </div>
    <p>Product Price :  @item.ProductPrice $  </p>
    <input type="submit"class="btn btn-primary btn-info" value="Delete Item" /><br />
}

```

DeleteOneItem Method:

```
 public ActionResult DeleteItem(int ProductId)
    {

        List<Product> AddedToCart = new List<Product>();
        AddedToCart = (List<Product>)Session["listOfSelectedItems"];

        var deleteSelecedItem = AddedToCart.Where(a => a.ProductID.Equals(pId)).FirstOrDefault();

        AddedToCart.Remove(deleteSelecedItem);

        var viewModel = new MyViewModel
        {
            itemsNumbers = Convert.ToInt32(Session["items"]),
            SumVM = Convert.ToInt32(Session["sum"]),
            AddToCartList = AddedToCart
        };

        return View("Cart", viewModel);
    }

```

And the other one that delete the selected items but i can't figure it out how to do it . 

I started by putting all the selected items inside a list first by adding
a check input beside each element.

```
<input class="form-check-input" type="checkbox" value="@item.ProductId" 
id="defaultCheck1" name="employeeIdsToDelete">
 ....
 ....
 ....
 <input type="submit"class="btn btn-primary btn-info" value="Delete Selected  Items" /><br />

```

And In the controller i was able to get the list of all selected items IDs

```
public ActionResult DeleteItemCheckbox(List<int> employeeIdsToDelete)
    {
     var ListP=employeeIdsToDelete.ToList();
     ..

```

now I already have a list called ItemsSelectedToBuy that contains the selected product that users wants to buy.
it in the Session["listOfSelectedItems"];

What I want to do is to delete all items selected in the employeeIdsToDelete 
from the Session["listOfSelectedItems"] which is a list of product selected.