// Stop timer for a project public async Task <IActionResult> Stop(int projectId) { var project = await _projects.GetProjectAsync(projectId); if (project == null) { return(NotFound()); } if (!await _authorizationService.AuthorizeAsync(User, project, "IsOwner")) { return(NotFound()); } await _timers.StopTimerAsync(project); return(Ok()); }