Ejemplo n.º 1
0
        public IList <CoursesBEAN> GetCourses()
        {
            IList <Course>      _SheffieldCoursesList = _proxy.SheffCourses();
            IList <CoursesBEAN> _coursesList          = new List <CoursesBEAN>();

            foreach (Course SheffieldCourse in _SheffieldCoursesList)
            {
                CoursesBEAN _bean = new CoursesBEAN();
                _bean.Id           = SheffieldCourse.Id;
                _bean.Name         = SheffieldCourse.Name;
                _bean.Description  = SheffieldCourse.Description;
                _bean.Requirements = SheffieldCourse.EntryReq;
                _bean.Tarif        = SheffieldCourse.Tarif.ToString();
                _bean.NSS          = SheffieldCourse.NSS.ToString();
                _bean.Degree       = SheffieldCourse.Qulaification;
                _coursesList.Add(_bean);
            }

            return(_coursesList);
        }
Ejemplo n.º 2
0
        public IList <CoursesBEAN> GetCourses()
        {
            IList <SHUCourse>   _SHUCoursesList = _proxy.SHUCourses();
            IList <CoursesBEAN> _coursesList    = new List <CoursesBEAN>();

            foreach (SHUCourse SHUCourse in _SHUCoursesList)
            {
                CoursesBEAN _bean = new CoursesBEAN();
                _bean.Id           = SHUCourse.CourseId;
                _bean.Name         = SHUCourse.CName;
                _bean.Description  = SHUCourse.CDescription;
                _bean.Requirements = SHUCourse.CRequirements;
                _bean.Tarif        = SHUCourse.CTarif;
                _bean.NSS          = SHUCourse.CNSS;
                _bean.Degree       = SHUCourse.CDegree;
                _coursesList.Add(_bean);
            }

            return(_coursesList);
        }