public void GetStudyGuideFromModel(StudyGuide studyGuide) { studyGuide.Name = Name; studyGuide.Literacy = Literacy; studyGuide.PlaceOfTraining = PlaceOfTraining; studyGuide.InstructionTime = InstructionTime; studyGuide.GraduationTime = GraduationTime; studyGuide.LevelStudyGuideId = LevelStudyGuideId; studyGuide.LecturerId = LecturerId; }
public StudyGuideViewModel(StudyGuide studyGuide) : this() { if (studyGuide != null) { Id = studyGuide.Id; Name = studyGuide.Name; Literacy = studyGuide.Literacy; PlaceOfTraining = studyGuide.PlaceOfTraining; InstructionTime = studyGuide.InstructionTime; GraduationTime = studyGuide.GraduationTime; LevelStudyGuide = new LevelStudyGuideViewModel(studyGuide.LevelStudyGuide); Lecturer = new LecturerViewModel(studyGuide.Lecturer); //User = new UserViewModel(scientificWork.User); //Lecturer = new LecturerViewModel; } }