public IActionResult Edit(int id)
        {
            var email       = User.FindFirst("emails").Value;
            var application = _applicationData.GetUserApplications(email).FirstOrDefault(a => a.ApplicationId == id);

            if (application == null)
            {
                return(View("NotFound"));
            }
            var jobOffer = _jobOfferData.FindById(application.JobOfferId);

            if (jobOffer == null)
            {
                return(View("NotFound"));
            }

            var applyViewModel = new ApplyViewModel();

            applyViewModel.ApplicationId      = application.ApplicationId;
            applyViewModel.Name               = application.Name;
            applyViewModel.CommunicationEmail = application.CommunicationEmail;
            applyViewModel.Phone              = application.Phone;
            applyViewModel.Info               = application.Info;
            applyViewModel.OfferName          = jobOffer.Name;
            applyViewModel.JobOfferId         = jobOffer.JobOfferId;
            applyViewModel.CvFile             = application.CvFile;

            return(View(applyViewModel));
//            return View("Apply", applyViewModel);
        }
        public IActionResult IndexUser()
        {
            var email        = User.FindFirst("emails").Value;
            var applications = _applicationData.GetUserApplications(email);
            var model        = new ApplicationsViewModel();

            model.Applications = applications;
            model.UserType     = UserType.User;
            return(View(model));
        }