Hey Umbraco was hopeing if someone is able to help me out, im trying to send a model from a Pview to the controller, via BeginUmbracoForm, how ever the controller models is null.
if i use the input hidden i can pass the data but it only works for the simple strings Sku and Quantity the model is null.
[HttpPost]
public ActionResult ShowBasket(AddToBasketViewModel model)
{
var temp = "";
if (!TransactionLibrary.HasBasket())
{
Redirect("/");
}
var basketModel = new PurchaseOrderViewModel();
...
return PartialView("/Views/Preorder/ViewBasket.cshtml", basketModel);
}
What am i doing wrong ? or is it even possible to do it?
Sending models to controller
Hey Umbraco was hopeing if someone is able to help me out, im trying to send a model from a Pview to the controller, via BeginUmbracoForm, how ever the controller models is null.
if i use the input hidden i can pass the data but it only works for the simple strings Sku and Quantity the model is null.
What am i doing wrong ? or is it even possible to do it?
it is running 7.15 on cloud
Really looking forward for any tips
BR Mathias
is working on a reply...