Ejemplo n.º 1
0
        public StudentMap GetStudentData(string UserName)
        {
            StudentBasicData std_data = new StudentMananger().FindBy(x => x.Username == UserName);
            StudentMap       stds     = Mapper.Map <StudentMap>(std_data);

            #region

            string SP_Current = "exec [dbo].[GetStudentsCourses] @Std_Id";
            List <SqlParameter> Params_Current = new List <SqlParameter>()
            {
                new SqlParameter("@Std_Id", stds.StudentID),
            };
            List <Student_EnrollmentMap> InstructorcurrentPros = QueryData <Student_EnrollmentMap>(SP_Current, Params_Current);
            stds.Student_Enrollment = InstructorcurrentPros;
            #endregion

            var Plat     = db.PlatfromIntakes.Where(t => t.PlatformIntakeID == stds.PlatformIntakeID).SingleOrDefault();
            int?BranchID = Plat.BranchID;
            int?TrackId  = Plat.SubTrackID;

            stds.TrackId  = TrackId;
            stds.BranchID = BranchID;


            return(stds);
        }
Ejemplo n.º 2
0
        public List <StudentAutherization> GetStudents()
        {
            List <StudentBasicData> xx = new StudentMananger().GetAll().ToList();
            var ts = Mapper.Map <List <StudentAutherization> >(xx);

            return(ts);
        }