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)); }