public ActionResult Create(LanguageCreateModel request) { LanguageModelFactory languageModelFactory = new LanguageModelFactory(); LanguageCreateModel model = ModelState.IsValid ? languageModelFactory.Create(request) : languageModelFactory.LoadCreate(); return CheckViewModel(request); }
public ActionResult Index(int page = 1) { LanguageModelFactory languageModelFactory = new LanguageModelFactory(); LanguageIndexModel model = languageModelFactory.LoadIndex(page); return View(model); }
public ActionResult Create() { LanguageModelFactory languageModelFactory = new LanguageModelFactory(); LanguageCreateModel model = languageModelFactory.LoadCreate(); return View(model); }