public IActionResult Create([Bind("Id,Name")] User user) { if (ModelState.IsValid) { _api.AddUser(user.Name); return(RedirectToAction(nameof(Index))); } return(View(user)); }