public BaseResponce <AccessToken> CreateAccessToken(string email, string password) { BaseResponce <PersonelTablosu> personelResponce = personelService.EmailvePasswordAra(email, password); if (personelResponce.Success) { AccessToken accessToken = tokenHendler.CreateAccessToken(personelResponce.Extra); personelService.RefreshTokenKaydet(personelResponce.Extra.PersonelId, accessToken.RefreshToken); return(new BaseResponce <AccessToken>(accessToken)); } else { return(new BaseResponce <AccessToken>(personelResponce.ErrorMessage)); } }