Ejemplo n.º 1
0
        public List <StudentOrganisationApp.Data_Access.StudentHistory> getHistoricalOrgsByID(int stuID)
        {
            List <StudentOrganisationApp.Data_Access.StudentHistory> orgroster = new List <StudentOrganisationApp.Data_Access.StudentHistory>();

            try
            {
                var stud = dataContext.sp_GetHistoricalOrgsByStudentID(stuID);
                foreach (var s in stud)
                {
                    StudentOrganisationApp.Data_Access.StudentHistory org = new StudentOrganisationApp.Data_Access.StudentHistory();
                    org.Organization = s.Organization;
                    org.MemberType   = s.Member_Type;
                    org.Session      = s.Session;
                    org.Year         = Convert.ToInt32(s.Year);
                    orgroster.Add(org);
                }
                return(orgroster);
            }
            catch (Exception e)
            {
            }

            return(orgroster);
        }