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