public async Task <IActionResult> GetCameraIdByLocation([FromQuery] double latitude, double longitude) { CameraLogic cameraLogic = new CameraLogic(); int cameraId = await cameraLogic.GetCameraIdByLocation(latitude, longitude); if (cameraId == 0) { return(BadRequest(cameraLogic.Response.ErrorMessage)); } return(Ok(cameraId)); }