public async Task <IActionResult> Create([Bind("Id,Type")] BokType bokType) { if (ModelState.IsValid) { _context.Add(bokType); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(bokType)); }