Esempio n. 1
0
        // Private Methods

        private void addExperience()
        {
            var job = repos.GetAll().FirstOrDefault(T => T.Employer == Employer);

            if (job != null)
            {
                job.Details.Add(Experience);
                repos.Update(job.ID, job);
            }
            else
            {
                job = _kernel.Get <IExperienceEntity>();
                job.Details.Add(Experience);
                repos.Add(job);
            }
            ExperienceAdded?.Invoke(this, new EventArgs());
        }
        public IEnumerable <Experience> GetExperiences()
        {
            var experiences = experienceRepository.GetAll();

            return(experiences);
        }
Esempio n. 3
0
 private void LoadExperiences()
 {
     Employers = new ObservableCollection <IExperienceEntity>(repos.GetAll());
 }
Esempio n. 4
0
        public ActionResult <IEnumerable <Experience> > Get()
        {
            var experience = experienceRepository.GetAll();

            return(Ok(experience));
        }
Esempio n. 5
0
 public IEnumerable <Experience> GetAll()
 {
     return(_repository.GetAll());
 }
 // GET: Experiences
 public IActionResult Index()
 {
     return(View(repository.GetAll()));
 }
 public List <Experience> GetAll()
 {
     return(_ExperienceRepository.GetAll());
 }