Exemplo n.º 1
0
        public List <DistributedInformationSystems.Models.SchoolYear> GetSchoolYears()
        {
            EnrollmentsEntities1 _enrollmentsdb = new EnrollmentsEntities1();
            var vDbSchoolYears = _enrollmentsdb.SchoolYears.ToList();
            List <DistributedInformationSystems.Models.SchoolYear> vSchoolYears = new List <Models.SchoolYear>();

            foreach (DistributedInformationSystems.SchoolYear schYr in vDbSchoolYears)
            {
                DistributedInformationSystems.Models.SchoolYear pSchYr = new Models.SchoolYear();
                pSchYr.Id   = schYr.Id;
                pSchYr.Year = schYr.Year;
                vSchoolYears.Add(pSchYr);
            }
            return(vSchoolYears);
        }
Exemplo n.º 2
0
 public StudentComposition()
 {
     _enrollmentsdb = new EnrollmentsEntities1();
 }
Exemplo n.º 3
0
 public EnrollmentsController()
 {
     _enrollmentsdb = new EnrollmentsEntities1();
 }