public async Task <bool> DeleteUserFromSSOviaPointmap(User user) { var _ssoAPI = new SSO_APIService(); var requestResponse = await _ssoAPI.DeleteUserFromSSO(user); if (requestResponse.IsSuccessStatusCode) { return(true); } // throw response of request throw new KFCSSOAPIRequestException(requestResponse.Content.ToString()); }
public async Task <bool> DeleteAccountSSO(User user) { var SSO_API = new SSO_APIService(); var deletedUser = await SSO_API.DeleteUserFromSSO(user); if (deletedUser.IsSuccessStatusCode) { return(true); } return(false); }