public FileResult DownloadCV(int id) { try { var response = _candidatoService.DownloadLastCV(id); var contentType = GetContentType(response.NombreCV); var rutaReal = System.IO.Path.Combine(response.UrlCV, response.CandidaturaId.ToString()); return(File(rutaReal + SeparatorBar + response.NombreCV, contentType, response.NombreCV)); } catch { return(null); } }