public IActionResult PersonelleriGetir() { IEnumerable <Claim> claims = User.Claims; string personelID = claims.Where(c => c.Type == ClaimTypes.NameIdentifier).First().Value; BaseResponce <PersonelTablosu> personelResponce = personelService.IdBul(int.Parse(personelID)); if (personelResponce.Success) { return(Ok(personelResponce.Extra)); } else { return(BadRequest(personelResponce.ErrorMessage)); } }