Пример #1
0
 public ViewResult Index(SubmitFormViewModel model)
 {
     if (ModelState.IsValid)
     {
         model.GeneratedParagraphs = _paragraphService.GetParagraphs(model.NumParagraphs, model.StartWithBaseballIpsum);
     }
     return View(model);
 }
Пример #2
0
 public ViewResult Index()
 {
     var initialModel = new SubmitFormViewModel {NumParagraphs = 5};
     return View(initialModel);
 }