public IActionResult NewEmployeeSkill()
        {
            var model = new CreateEmployeeSkill {
                IdEmpleado = HttpContext.Session.GetInt32("IdEmpleado").Value
            };

            return(View("NewEmployeeSkill", model));
        }
        public async Task <IActionResult> SaveEmployeeSkill(CreateEmployeeSkill createEmployeeSkill)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    await _empleadoHabilidadRepository.CreateEmployeeSkill(_mapper.Map <EmpleadoHabilidad>(createEmployeeSkill));

                    return(RedirectToAction(nameof(DetailSkill)));
                }
            }
            catch (Exception)
            {
                return(BadRequest());
            }
            return(View("NewEmployeeSkill", createEmployeeSkill));
        }