Posted on: 10/18/2013 4:48:17 AM | Views : 646

I have two models, as follows below. Getting problem in View,
1)      RelationType: holds data like “Mother, Father, Primary Teacher, Legal Guardian...etc.”
2)      Parents: holds personal profile information about Mother or Father or Primary Teacher...etc. of a children.
In RelationType Model, 
public class RelationType { public int RelationTypeID { get; set; } public string RelationName { get; set; } public virtual ICollection<Parent> Parents { get; set; } } In Model,
public class Parent { public int ParentID { get; set; } [Required,Display(Name="Family")] public int FamilyID { get; set; } [Required,Display(Name="Relationship")] public int RelationTypeID { get; set; } [Required, MaxLength(50), Display(Name = "First Name")] ...

Go to the complete details ...