Example #1
0
        private List <string> GetAllPropertyNameOfClassificationOfScientificWorkViewModel()
        {
            var classificationOfScientificWorkViewModel = new ClassificationOfScientificWorkViewModel();

            var type = classificationOfScientificWorkViewModel.GetType();

            return(ReflectionUtilities.GetAllPropertyNamesOfType(type));
        }
Example #2
0
        public OtherScientificWorkViewModel(OtherScientificWork otherScientificWork) : this()
        {
            if (otherScientificWork != null)
            {
                Id   = otherScientificWork.Id;
                Name = otherScientificWork.Name;

                Time = otherScientificWork.Time;
                ClassificationOfScientificWork = new ClassificationOfScientificWorkViewModel(otherScientificWork.ClassificationOfScientificWork);
                Lecturers = GetLecturer(otherScientificWork);
                //User = new UserViewModel(scientificWork.User);
                //Lecturer = new LecturerViewModel;
            }
        }