コード例 #1
0
        public async Task <IActionResult> Index(PersonViewModel personVM)
        {
            if (ModelState.IsValid)
            {
                await personVM.AddToDatabase(context);
            }

            return(RedirectToAction("Index", new { pageIndex = personVM.ReturnPage }));
        }