public async Task <IActionResult> Create([Bind("Id,Name")] Tenant item) { if (ModelState.IsValid) { _context.Attach(item); _context.Entry(item).State = EntityState.Added; await _context.SaveChangesAsync(); return(RedirectToAction("Index")); } return(View(item)); }