public IActionResult Create(CustomerEdit customerEdit) { var customer = new Customer(); customer.CustomerName = customerEdit.CustomerName; customer.Address = customerEdit.Address; _mongo.Add(customer); return(View("Details", customer)); }