コード例 #1
0
        public async Task <IActionResult> Create([Bind("Id, Maker, Model, Name, Operational")] Plane plane)
        {
            if (ModelState.IsValid)
            {
                await _planeRepository.CreateAsync(plane);

                return(RedirectToAction(nameof(Index)));
            }
            return(View(plane));
        }