Esempio n. 1
0
 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);
 }
Esempio n. 3
0
 public void StoreData([FromBody] KFCIssue value)
 {
     _manager.SaveIssue(value);
 }