コード例 #1
0
        public void OnGet()
        {
            CurrentAge         = DateHelper.GetYearDifference(DateTime.UtcNow, DateTime.Parse(_configuration["BirthdayDate"]));
            WorkExperiences    = _resumeRepository.GetWorkExperiences();
            UniversityDiplomas = _resumeRepository.GetUniversityDiplomas();

            IEnumerable <WorkItemModel> sideProjects = _resumeRepository.GetSideProjects();

            HighlightedSideProjects = sideProjects.Where(x => x.IsHighlighted);
            SideProjects            = sideProjects.Where(x => !x.IsHighlighted).GroupBy(x => x.Subtitle);
        }
コード例 #2
0
        public ViewResult Index()
        {
            IndexPageViewModel model = new IndexPageViewModel()
            {
                CurrentAge         = DateHelper.GetYearDifference(_birthDate, DateTime.UtcNow),
                WorkExperiences    = _repository.GetWorkExperiences(),
                UniversityDiplomas = _repository.GetUniversityDiplomas(),
                PersonalWork       = _repository.GetPersonalWork()
            };

            return(View(model));
        }