asp.net - What is the most efficient way to submit and save a form with several ICollection items? -
i having users fill out form requires number of 'educational background' pieces of data:
public class educationalbackground { public int educationalbackgroundid { get; set; } public string universityorcollege { get; set; } public string areaofstudy { get; set; } public string degree { get; set; } public int yearreceived { get; set; } public virtual application application { get; set; } } here model full application:
public class application { public int applicationid { get; set; } public profile basicinfogatheredfromprofile { get; set; } public virtual icollection<educationalbackground> educationalbackground { get; set; } public bool willingtotravel { get; set; } } i working on making page users can fill out full application , render partial view allows them add "educational background" piece of data many have.
what efficient way allow users add in indefinite number of "education background" pieces of information in application?
what thinking: need viewmodel allow icolleciton of educationalbackground when post form. jquery cleanest way add additional fields 'educational background'?
an example post action appreciated in addition information 1 able provide.
Comments
Post a Comment