コード例 #1
0
        public async Task <ActionResult> Create([Bind(Include = "Title")] Student student)
        {
            if (ModelState.IsValid)
            {
                await _service.AddAsync(student);

                return(RedirectToAction("Index"));
            }

            return(View(student));
        }