Beginner MVC 5. Showing Data ?

Feb 20 2016 8:36 AM
Hi, i'm a beginner
 
I have 2 Models, Students.cs and University.cs
 
 Students.cs  :
public class Student
{
public int Id { get; set; }
public string Name { get; set; }
public int Age { get; set; }
public University University { get; set; }
public Language Language { get; set; }
}
public enum Language
{
EN,
BA,
BG,
ID
}
 
University.cs ;
public class University
{
public int Id { get; set; }
public string Name { get; set; }
 
I've created 2 students, when create it fill Name, Age, and Language. 
I've also created 3 Universities, when create it only fill Name.
 
The questions are, how do i show universities choice on Students view after language ? How to retrieve its data from Universities table and show it into student details ?
and when create a student, after choose language, user can choose the university too. 
 
Thanks. 
 

Answers (1)