Exemplo n.º 1
0
        public IList getNonMembersForOrgID(int orgID)
        {
            List <StudentOrganisationApp.App_Data.Student> students = new List <StudentOrganisationApp.App_Data.Student>();
            var studs = dataContext.sp_GetNonMembersForOrgID(orgID);

            foreach (var x in studs)
            {
                StudentOrganisationApp.App_Data.Student student = new StudentOrganisationApp.App_Data.Student();
                student.Student_ID = x.Student_ID;
                student.LastName   = x.LastName + ", " + x.FirstName;
                students.Add(student);
            }
            return(students);
        }
Exemplo n.º 2
0
        public StudentOrganisationApp.App_Data.Student getStudentByID(int stuID)
        {
            StudentOrganisationApp.App_Data.Student student = null;

            try
            {
                var stud = dataContext.sp_GetStudentByCarrollID(stuID).First();

                student                 = new App_Data.Student();
                student.FirstName       = stud.FirstName;
                student.LastName        = stud.LastName;
                student.ClassOf         = stud.ClassOf;
                student.Email           = stud.Email;
                student.PreferredPhone  = stud.PreferredPhone;
                student.Active          = stud.Active;
                student.Gender          = stud.Gender;
                student.Carroll_ID      = stud.Carroll_ID;
                student.GPABoard        = stud.GPABoard;
                student.GPAOrg          = stud.GPAOrg;
                student.Major           = stud.Major;
                student.Major2          = stud.Major2;
                student.CertifiedDriver = stud.CertifiedDriver;
                student.ApprovedDriver  = stud.ApprovedDriver;
                student.GreekGPA        = stud.GreekGPA;
                student.Ferpa           = stud.Ferpa;
                student.Student_ID      = stud.Student_ID;
                student.OnCampus        = stud.OnCampus;
                student.Race            = stud.Race;
                student.International   = stud.International;
            }
            catch (Exception e)
            {
            }

            return(student);
        }