コード例 #1
0
        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)));
        }
コード例 #2
0
 public IActionResult Index()
 {
     return(View(DynamicHelper.GetModel(typeof(User))));
 }