0

I have a View Model as follow:

public class UserViewModel
{
    public string Name { get; set; }
    public string Email { get; set; }
    public string Password { get; set; }
    public List<string> Mac { get; set; }
}

And Action under User Controller:

 [HttpGet]
 public ActionResult Register()
 {
     return View();
 }

I created a view for this action with the scaffolding tool, in the generated code, there is no input for my Mac property. How can I create a dynamic input for my List? I want an input field where new input will be added through jQuery.

LoïcR
  • 4,940
  • 1
  • 34
  • 50
Abdus Sattar Bhuiyan
  • 3,016
  • 4
  • 38
  • 72

0 Answers0