public async Task Monitor([FromBody] UrlMonitoringObjectModel model) { var mappedModel = new MonitoringObject() { ServiceName = model.ServiceName, Url = model.Url }; await _monitoringService.MonitorAsync(mappedModel); }
public async Task MonitorUrl(UrlMonitoringObjectModel urlMonitoringObjectModel) { await UrlMonitoring.Monitor(urlMonitoringObjectModel); }