public TimelineViewModel CreateTimeline()
        {
            var sRepo    = new SchoolsRepository(_context);
            var timeline = new TimelineViewModel()
            {
                TimelineId = Guid.NewGuid().ToString(),
                Schools    = sRepo.GetSchools()
            };

            return(timeline);
        }
Example #2
0
        public ProfileViewModel CreateProfile()
        {
            var eRepo   = new EducationLevelsRepository(_context);
            var hRepo   = new HobbiesRepository(_context);
            var lRepo   = new LocationsRepository(_context);
            var sRepo   = new SchoolsRepository(_context);
            var profile = new ProfileViewModel()
            {
                ProfileId       = Guid.NewGuid().ToString(),
                EducationLevels = eRepo.GetEducationLevels(),
                Hobbies         = hRepo.GetHobbies(),
                Locations       = lRepo.GetLocations(),
                Schools         = sRepo.GetSchools()
            };

            return(profile);
        }