Beispiel #1
0
 public ActionResult Step5(Step5ViewModel model)
 {
     if (ModelState.IsValid)
     {
         _listingService.SaveListingStep5(model, User.Identity.GetUserId());
         return(RedirectToAction(nameof(Step6), new { id = model.Id }));
     }
     model.StepsProgressModel.ListingId = model.Id;
     model.StepsProgressModel.Step      = 5;
     return(View("Common/Step5", model));
 }
Beispiel #2
0
        public ActionResult Step5(int id)
        {
            Step5ViewModel model = _listingService.GetStep5ById(id);

            model.StepsProgressModel.Step      = 5;
            model.StepsProgressModel.ListingId = id;
            try
            {
                HttpRuntimeSection section = ConfigurationManager.GetSection("system.web/httpRuntime") as HttpRuntimeSection;
                var maxAlloweLength        = section.MaxRequestLength;
                model.MaxRequestLength = maxAlloweLength;
            }
            catch (Exception e)
            {
                this.AddToastMessage(Resource.Error, Resource.Error, ToastType.Error);
            }
            return(View("Common/Step5", model));
        }