public IActionResult Save(List <GenericModel> data) { User user = new User(); foreach (var item in data) { DynamicHelper.SetObjectProperty(item.Key, item.Value, user); } return(View(DynamicHelper.GetModel(user))); }
public IActionResult Index() { return(View(DynamicHelper.GetModel(typeof(User)))); }