public ActionResult TypeOfMerchandising(TypeOfUse typeOfUse) { var model = new ChooseTypeOfMerchandisingViewModel { TypeOfUse = typeOfUse }; return(View(model)); }
public ActionResult TypeOfMerchandising(ChooseTypeOfMerchandisingViewModel model) { if (ModelState.IsValid) { return(RedirectToAction("ChoosePropertyType", new { typeOfMerchandising = model.TypeOfMerchandising, typeOfUse = model.TypeOfUse })); } return(View(model)); }