예제 #1
0
        public async Task <IActionResult> Create([Bind("公告编号,公告标题,标题色彩,公告内容,发布时间,发布人编号,发布人姓名")] 系统公告 系统公告)
        {
            if (ModelState.IsValid)
            {
                _context.Add(系统公告);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(系统公告));
        }
예제 #2
0
        public async Task <IActionResult> Create([Bind("Id,Words,解释,WordsReverse,押韵,押韵字使用频率")] 汉字38万词海 汉字38万词海)
        {
            if (ModelState.IsValid)
            {
                _context.Add(汉字38万词海);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(汉字38万词海));
        }