public StudentViewModel(Student student) : this()
        {
            if (student != null)
            {
                Id                   = student.Id;
                Username             = student.Username;
                FirstName            = student.FirstName;
                LastName             = student.LastName;
                Email                = student.Email;
                Gender               = student.Gender;
                DateOfBirth          = student.DateOfBirth;
                ExtracurricularPoint = 0;
                CertificateStatus    = new CertificateStatusViewModel(student.CertificateStatus);

                var extracurricularRepository         = IoCHelper.GetInstance <IRepository <Extracurricular> >();
                var extracurricularActivityRepository = IoCHelper.GetInstance <IRepository <ExtracurricularActivity> >();

                var extracurricularActivityIdArray = extracurricularRepository.GetAll()
                                                     .Where(x => x.StudentId == Id).Select(x => x.ExtracurricularActivityId).ToArray();

                Class = new ClassViewModel(student.Class);
                //ClassId = student.ClassId;
                //SpecialtyId = student.SpecialtyId;
                Specialty = new SpecialtyViewModel(student.Specialty);

                foreach (var extracurricularActivityId in extracurricularActivityIdArray)
                {
                    ExtracurricularPoint += extracurricularActivityRepository.GetAll().FirstOrDefault(x => x.Id == extracurricularActivityId).Point;
                }
                // Lấy điểm của từng
                //ExtracurricularPoint = student
                //Roles = user.UserInRoles != null ? user.UserInRoles.Select(y => new RoleViewModel(y.Role)).ToArray() : null;
            }
        }
        private List <string> GetAllPropertyNameOfCertificateStatusViewModel()
        {
            var certificateStatusViewModel = new CertificateStatusViewModel();

            var type = certificateStatusViewModel.GetType();

            return(ReflectionUtilities.GetAllPropertyNamesOfType(type));
        }