public async Task <IActionResult> RemoveSuperVip([FromBody] RemoveSuperVipRequest requestModel) { if (await _playlistService.RemoveSuperRequest(requestModel.Username).ConfigureAwait(false)) { return(Ok()); } return(BadRequest()); }
public async Task <bool> RemoveSuperVip(RemoveSuperVipRequest removeSuperVipRequest) { try { var result = await _playlistClient.PostAsync("RemoveSuperVip", HttpClientHelper.GetJsonData(removeSuperVipRequest)); return(result.IsSuccessStatusCode); } catch (Exception e) { return(HttpClientHelper.LogError <bool>(_logger, e, new object[] { removeSuperVipRequest.Username })); } }