public ActionResult Create(CandidateCreateModel candidateCreateModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(candidateCreateModel));
            }
            var dto        = mapper.Map <CreateCandidateDTO>(candidateCreateModel);
            int fileLength = candidateCreateModel.Photo.ContentLength;

            dto.Photo = new byte[fileLength];
            candidateCreateModel.Photo.InputStream.Read(dto.Photo, 0, fileLength);
            dto.UserName = User.Identity.Name;
            candidateAppService.Create(dto);
            return(RedirectToAction(ControllerStrings.ResumeMethod, ControllerStrings.Candidate));
        }