public async Task <IActionResult> Reset() { await _azureMapsApiService.CreateGeofence(); await _azureMapsApiService.ResetUserGeoposition(); return(Ok()); }
public async Task <ActionResult> CreateGeofence([FromBody] CreateGeofenceRequestModel createGeofenceRequest) { if (createGeofenceRequest.Coordinates == null || createGeofenceRequest.Coordinates.Count == 0) { return(BadRequest("List of coordinates of the polygon is required.")); } await _azureMapsApiService.CreateGeofence(createGeofenceRequest.Coordinates); return(Ok()); }