public IActionResult EditCandidate(EditCandidate model)
        {
            if (ModelState.IsValid)
            {
                var candidate = ConvertModel.EditCandidateToCandidate(model, _dataRepository);

                if (model.Resume != null)
                {
                    candidate.ResumePath = UploadFile(model.Resume, model.FullName);
                }

                var result = _dataRepository.UpdateCandidate(candidate);
                return(RedirectToAction("CandidateDetail", new { id = result.Id }));
            }

            return(View("Index"));
        }