Esempio n. 1
0
 public void ConvertTo(AssessmentGroupView assessmentGroupView, AssessmentGroup assessmentGroup)
 {
     assessmentGroup.AssessmentGroupPK = assessmentGroupView.AssessmentGroupPK;
     assessmentGroup.Name             = assessmentGroupView.Name;
     assessmentGroup.AssessmentTypeFK = assessmentGroupView.AssessmentTypeFK;
     assessmentGroup.Deleted          = assessmentGroupView.Deleted;
 }
Esempio n. 2
0
        public void BindDDLs(AssessmentGroupView assessmentGroupView, ObjectContext db)
        {
            IAssessmentTypesRepository assessmentTypesRepository = new AssessmentTypesRepository(db);

            assessmentGroupView.AssessmentTypes = new SelectList(assessmentTypesRepository.GetValid().OrderBy("Name ASC").ToList(), "AssessmentTypePK", "Name");
        }