Example #1
0
 public ActionResult ChoosePropertyType(InitListingViewModel model)
 {
     if (ModelState.IsValid)
     {
         int listingId = _listingService.InitNewListing(model, User.Identity.GetUserId());
         return(RedirectToAction("Step1", "Property", new { id = listingId }));
     }
     return(View(model));
 }
Example #2
0
        public ActionResult ChoosePropertyType(TypeOfMerchandising typeOfMerchandising, TypeOfUse typeOfUse)
        {
            var model = new InitListingViewModel
            {
                TypeOfUse           = typeOfUse,
                TypeOfMerchandising = typeOfMerchandising
            };

            return(View(model));
        }