public ActionResult Create() { ArticleModelFactory articleModelFactory = new ArticleModelFactory(); ArticleCreateModel model = articleModelFactory.LoadCreate(); return(View(model)); }
public ActionResult Create(ArticleCreateModel request) { ArticleModelFactory articleModelFactory = new ArticleModelFactory(); ArticleCreateModel model = ModelState.IsValid ? articleModelFactory.ArticleCreate(request) : articleModelFactory.LoadCreate(); return(CheckViewModel(model)); }