public ActionResult AddExperiences(AddResumeExpiriensViewModel model)
        {
            var resume = db.Resumes.Include(r => r.Candidate).ThenInclude(r => r.AccountUser)
                         .Include(r => r.Experiences).ThenInclude(r => r.Employment)
                         .FirstOrDefault(i => i.Id == model.ResumeId);

            var employment = db.Employments.FirstOrDefault(e => e.Id == model.EmploymentId);

            var newExp = new Experience()
            {
                Id           = Guid.NewGuid(),
                Resume       = resume,
                DateWorkFrom = model.DateWorkFrom,
                DateWorkTo   = model.DateWorkTo,
                IsWorkingNow = model.IsWorkingNow,

                Employment = employment,
                Position   = model.Position,
                Task       = model.Task,
                Progres    = model.Progres
            };

            resume.DateChange = DateTime.Now;


            resume.Experiences.Add(newExp);
            db.Update(resume);
            db.SaveChanges();

            return(RedirectToAction("Edit", "Resume", new { resumeId = model.ResumeId }));
        }
        // Досвід роботи
        public ActionResult AddExperiences(Guid resumeId)
        {
            var resume = db.Resumes.Include(r => r.Candidate).ThenInclude(r => r.AccountUser)
                         .Include(r => r.Experiences).ThenInclude(r => r.Employment)
                         .FirstOrDefault(i => i.Id == resumeId);



            var model = new AddResumeExpiriensViewModel()
            {
                Resume = resume,
            };

            model.Employments = db.Employments.Include(e => e.Experiences)
                                .ThenInclude(f => f.Resume).Select(e => new SelectListItem()
            {
                Value = e.Id.ToString(),
                Text  = e.Name
            }).ToList();

            return(View("/Arrea/Candidate/Views/Resumes/EditResume/AddExperiences.cshtml", model));
        }