public async Task SendIssueToStorage(KFCIssue issue) { var storageUrl = API.Storage.SendToStorage(_baseStorageUrl); //TODO спрятать в отдельном классе var content = new StringContent(JsonConvert.SerializeObject(issue), Encoding.UTF8, "application/json"); await _httpClient.PostAsync(storageUrl, content); }
public void SaveIssue(KFCIssue issue) { _issues.Add(issue); }
public void StoreData([FromBody] KFCIssue value) { _manager.SaveIssue(value); }