public ActionResult <InformacionDatoLaboralViewModel> GetDatoLaboralId(int id)
        {
            var response = datoLaboralService.BuscarPorId(id);

            if (!response.Error)
            {
                var informacionDatoLaboralViewModel = new InformacionDatoLaboralViewModel(response.DatoLaboral);
                return(Ok(informacionDatoLaboralViewModel));
            }
            return(BadRequest(response.Mensaje));
        }
        public ActionResult <InformacionDatoLaboralViewModel> PostDatoLaboral(DatoLaboralInputModel DatoLaboralInput)
        {
            var buscarHojaDeVidaResponse = hojaDeVidaService.BuscarHojaDeVidaPorCorreoAspirante(DatoLaboralInput.AspiranteId);

            if (buscarHojaDeVidaResponse.HojaDeVida == null)
            {
                return(BadRequest("No se encuentra registrada la hoja de vida en la que desea ingresar los datos"));
            }
            else
            {
                var datoLaboral = MapearDatoLaboral(DatoLaboralInput);
                datoLaboral.HojaDeVida = buscarHojaDeVidaResponse.HojaDeVida;
                var response = datoLaboralService.GuardarDatoLaboral(datoLaboral);
                if (!response.Error)
                {
                    var informacionDatoLaboralViewModel = new InformacionDatoLaboralViewModel(datoLaboral);
                    return(Ok(informacionDatoLaboralViewModel));
                }
                return(BadRequest(response.Mensaje));
            }
        }