Model Binding not working

后端 未结 10 1449
别那么骄傲
别那么骄傲 2021-02-06 01:52

I have the following POCO classes:

public class Location
    {
        public int LocationId { get; set; }
        public string Name { get; set; }
        publi         


        
10条回答
  •  后悔当初
    2021-02-06 02:12

    I know it's too late to comment on this.What I did is added parameter less constructor in the ViewModel and everything worked awesome.

提交回复
热议问题