//constructor used for dependency injection
        /*public StudentsController(IStudentsRepository repo, IEmailer emailer)
        {
            this.Studentrepo = repo;
            this.emailer = emailer;

        }*/
        public StudentsController()
        {
            ApplicationDbContext context = new ApplicationDbContext();
            this.repo = new StudentsRepository(context);
            this.CompRepo = new CompetenciesRepository(context);
            this.HeaderRepo = new CompetencyHeaderRepo(context);
        }
 // GET: CompetenciesController1
 public CompetenciesController()
 {
     ApplicationDbContext context = new ApplicationDbContext();
     this.repo = new CompetenciesRepository(context);
     this.headerRepo = new CompetencyHeaderRepo(context);
 }