public async Task <IActionResult> Create([Bind("ResourceId,Type,Available,Location,CertificationLevel,VehicleType")] Resource resource) { if (ModelState.IsValid) { _context.Add(resource); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(resource)); }