I want to fill the following when I add the subject and cheater models.

  • department list
  • semester list
  • standard list
  • stream list

cheater model:-

Code
namespace firstapp.Models
Code
{
Code
public class chepter
Code
{
Code
[ForeignKey("dip_id")]
Code
public int dipart_id { get; set; }
Code
public int chep_id { get; set; }
Code
public string subject { get; set; }
Code
public string chepter { get; set; }
Code
public List<dipartment> dipartlist { get; set; }
Code
public List<dipartment> stdlist { get; set; }
Code
public List<dipartment> semlist { get; set; }
Code
public List<dipartment> stremlist { get; set; }
Code
}
Code
}
 

department model:

Code
namespace firstapp.Models
Code
 {
Code
public class dipartment
Code
{
Code
 public int dip_id { get; set; }
Code
 public string dipart { get; set; }
Code
 public string std { get; set; }
Code
 public string sem { get; set; }
Code
public string strem { get; set; }
Code
 }
Code
}