Ejemplo n.º 1
0
        public UserQualificationModel(UserQualification userQualification)
        {
            User              = new UserModel(userQualification.User);
            Qualification     = new QualificationModel(userQualification.Qualification);
            QualificationType = (QualificationTypes)userQualification.Qualification.QualificationTypeId;

            DateAwarded = userQualification.UpdatedDate;
        }
Ejemplo n.º 2
0
 public ModuleModel(Module module, bool ignoreIncludeInSyllabus = false)
 {
     ModuleId      = module.ModuleId;
     Name          = module.Name;
     Description   = module.Description;
     Qualification = new QualificationModel(module.Qualification);
     UserCriteria  = module.ModuleSections.SelectMany(x => x.Criteria.SelectMany(y => y.UserCriterias))
                     .Select(x => new UserCriterionModel(x)).ToArray();
     ModuleSections = module.ModuleSections?.Select(x => new ModuleSectionModel(x, ignoreIncludeInSyllabus));
 }
Ejemplo n.º 3
0
 public EnrolPostModel(int userId, Qualification qualification)
 {
     UserId        = userId;
     Qualification = new QualificationModel(qualification);
     Selected      = false;
 }
Ejemplo n.º 4
0
        public TrainingModel(Qualification qualification, bool ignoreIncludeInSyllabus = false)
        {
            Qualification = new QualificationModel(qualification);

            Modules = qualification.Modules.Select(x => new TrainingModuleModel(x, ignoreIncludeInSyllabus)).ToArray();
        }