private DatoLaboral MapearDatoLaboral(DatoLaboralInputModel datoLaboralInput)
        {
            var datoLaboral = new DatoLaboral()
            {
                NombreEmpresa     = datoLaboralInput.NombreEmpresa,
                Cargo             = datoLaboralInput.Cargo,
                Area              = datoLaboralInput.Area,
                FechaInicio       = datoLaboralInput.FechaInicio,
                FechaFinalizacion = datoLaboralInput.FechaFinalizacion,
            };

            return(datoLaboral);
        }
        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));
            }
        }