Example #1
0
        public async Task <IActionResult> GETListarPersonalEmpresa(int COD_EMPRESA)
        {
            try
            {
                {
                    var identity  = HttpContext.User.Identity as ClaimsIdentity;
                    int idUsuario = JwtConfigurator.GetTokenIdUsuario(identity);

                    var ListaPersonal = await _PersonalService.ListarPersonal_Empresa(COD_EMPRESA);

                    return(Ok(ListaPersonal));
                }
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }