Example #1
0
        public ActionResult Create(CreateAdvertisementViewModel model)
        {
            if (ModelState.IsValid)
            {
                newAdvertisement.CreateNewAdvertisement(model, User.Identity.GetUserId());
                return(RedirectToAction("UserAdvertisement", "User"));
            }

            return(View(newAdvertisement.RebuildModelAdvertisement()));
        }