public IActionResult Create(User Model) { if (Model != null) { Model.PasswordHash = BCrypt.Net.BCrypt.HashPassword(Model.PasswordHash); var handle = new UserHandlerDapper(); handle.AddModel(Model); } return(RedirectToAction("Index")); }