Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public bool UnclaimCamera(int cameraId) { DatabaseCamera dbCamera = _dbQueryService.GetCameraById(cameraId); DatabaseCamera freshCamera = new DatabaseCamera { CameraKey = dbCamera.CameraKey }; if (_dbQueryService.DeleteAlertsWithCameraId(cameraId) && DeletePerSecondStatsWithCameraId(cameraId) && (dbCamera.ImagePath.IsNullOrEmpty() || DeleteCameraImage(new CameraDetails(dbCamera)))) { return(_dbQueryService.PersistExistingCameraByCameraKey(freshCamera, true)); } return(false); }