Ejemplo n.º 1
0
        //public Guid UserId { get; set; }

        public void GetOtherScientificWorkFromModel(OtherScientificWork otherScientificWork)
        {
            otherScientificWork.Name = Name;
            otherScientificWork.Time = Time;
            otherScientificWork.ClassificationOfScientificWorkId = ClassificationOfScientificWorkId;
            //scientificWork.UserId = UserId;
        }
Ejemplo n.º 2
0
        private List <LecturerViewModel> GetLecturer(OtherScientificWork otherScientificWork)
        {
            var lecturers = new List <LecturerViewModel>();

            foreach (var lecturerInOtherScientificWork in otherScientificWork.LecturerInOtherScientificWorks)
            {
                lecturers.Add(new LecturerViewModel(lecturerInOtherScientificWork.Lecturer));
            }
            return(lecturers);
        }
Ejemplo n.º 3
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;
            }
        }