예제 #1
0
        public ActionResult TypeOfMerchandising(TypeOfUse typeOfUse)
        {
            var model = new ChooseTypeOfMerchandisingViewModel {
                TypeOfUse = typeOfUse
            };

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