public ActionResult SelectBasket(int basketId, int supplierId) { var viewmodel = new AddProductsToBasketViewModel() { BasketId = basketId, SupplierId = supplierId, RetailerId = 1 }; return(PartialView("~/Views/Retailer/BrowseSuppliers/_AddProductsToBasket.cshtml", viewmodel)); }
public ActionResult CreateNewBasket(int supplierId) { var response = _orderApi.CreateNew(supplierId, 1, 1); var viewmodel = new AddProductsToBasketViewModel() { BasketId = response.OrderBasket.OrderBasketId, SupplierId = supplierId, RetailerId = 1 }; return(PartialView("~/Views/Retailer/BrowseSuppliers/_AddProductsToBasket.cshtml", viewmodel)); }