public async Task <MonitorModel> AddMonitorAsync(MonitorModel monitor) { UriBuilder builder = new UriBuilder(GlobalRoutingSettings.Instance.AddMonitor); string uri = builder.ToString(); MonitorModel monitorContainer = await _request.PostAsync(uri, monitor); return(monitorContainer); }
public async Task <User> ResetAsync <User>(User model) { UriBuilder builder = new UriBuilder(GlobalRoutingSettings.Instance.Reset); string uri = builder.ToString(); User user = await _requests.PostAsync <User>(uri, model); return(user); }