I have Course, Offered Course , Course Registration table ,Section Table in my project I want to implement Course Registration system of each user. this is my database diagram of the project.
I want to implement this feature like this . I don't implement this features of
class time . public class Course
{
[Key]
public int CourseId { get; set; }
[Required]
public string Name { get; set; }
public string Code { get; set; }
public string Credit { get; set; }
public DateTime RegDate { get; set; }
public string PreCourse { get; set; }
public int DepartmentId { get; set; }
[ForeignKey("DepartmentId")]
public virtual Department Department { get; set; }
public virtual ICollection<OfferedCourse> OfferedCourses { get; set; }
}
this is my course model,
public class Department
{
[Key]
public int DepartmentId { get; set; }
[Required]
public string Name { get; set; }
[Required]
public string Code { get; set; }
public virtual ICollection<ApplicationUser> ApplicationUsers { get; set; }
public virtual ICollection<Course> Courses { get; set; }
}
this is my department model,
public class OfferedCourse
{
[Key]
public int OfferedCourseId { get; set; }
public int Capacity { get; set; }
public bool Status { get; set; }
public int CourseId { get; set; }
[ForeignKey("CourseId")]
public virtual Course Course { get; set; }
public string TeacherId { get; set; }
[ForeignKey("TeacherId")]
public virtual ApplicationUser ApplicationUser { get; set; }
public int SectionId { get; set; }
[ForeignKey("SectionId")]
public virtual Section Section { get; set; }
public int SemesterId { get; set; }
[ForeignKey("SemesterId")]
public virtual Semester Semester { get; set; }
public virtual ICollection<CourseRegistration> CourseRegistrations { get; set; }
}
this is my offered course for each semester.
public class Section
{
[Key]
public int SectionId { get; set; }
public string Title { get; set; }
}
this is my section model.In this project, I am using asp.net identity framework for manage user like teacher, student. But have tried many ways to manage the radio button in Course Registration View . How Can I implement this feature because I have different type of data like section and course name how can I handle this