private List <string> GetAllPropertyNameOfScientificReportTypeViewModel() { var scientificReportTypeViewModel = new ScientificReportTypeViewModel(); var type = scientificReportTypeViewModel.GetType(); return(ReflectionUtilities.GetAllPropertyNamesOfType(type)); }
public ScientificReportViewModel(ScientificReport scientificReport) : this() { if (scientificReport != null) { Id = scientificReport.Id; Name = scientificReport.Name; Content = scientificReport.Content; Time = scientificReport.Time; ScientificReportType = new ScientificReportTypeViewModel(scientificReport.ScientificReportType); Lecturers = GetLecturer(scientificReport); //User = new UserViewModel(scientificReport.User); } }