public async Task <UpdateStatusViewModelList> ChangeList(FixParameterChangeListRequest request)
        {
            var sessions = Core.Token;

            _client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", sessions);
            var json        = JsonConvert.SerializeObject(request);
            var httpContent = new StringContent(json, Encoding.UTF8, "application/json");
            var response    = await _client.PostAsync($"/api/FixParameters/ChangeList", httpContent);

            var result = await response.Content.ReadAsStringAsync();

            if (response.IsSuccessStatusCode)
            {
                return(JsonConvert.DeserializeObject <UpdateStatusViewModelList>(result));
            }
            return(null);
        }
Example #2
0
        public async Task <UpdateStatusViewModelList> ChangeList(FixParameterChangeListRequest request)
        {
            var result = await _apiClient.ChangeList(request);

            return(result);
        }