示例#1
0
        public ActionResult Create(LanguageCreateModel request)
        {
            LanguageModelFactory languageModelFactory = new LanguageModelFactory();
            LanguageCreateModel model = ModelState.IsValid ? languageModelFactory.Create(request) : languageModelFactory.LoadCreate();

            return CheckViewModel(request);
        }
示例#2
0
        public ActionResult Index(int page = 1)
        {
            LanguageModelFactory languageModelFactory = new LanguageModelFactory();
            LanguageIndexModel model = languageModelFactory.LoadIndex(page);

            return View(model);
        }
示例#3
0
        public ActionResult Create()
        {
            LanguageModelFactory languageModelFactory = new LanguageModelFactory();
            LanguageCreateModel model = languageModelFactory.LoadCreate();

            return View(model);
        }