public async Task CreateWatchmanAsync(WatchmanProfile <Guid> watchman, string token = null) { var uri = WatchmanUrl + "/Create"; var obj = new { watchman.Id }; await _client.SendRequest(HttpMethod.Post, null, obj, uri, token); }
public async Task CreateWatchmanAsync(WatchmanProfile <Guid> watchman, string token = null) { await _db.WatchmanRepository.CreateAsync(watchman as WatchmanProfileHealth); await _db.SaveAsync(); }