Exemplo n.º 1
0
        public async Task <IActionResult> SetUserSelectedProject(string projectId)
        {
            GoNorthProject project = await _projectDbAccess.GetProjectById(projectId);

            if (project == null)
            {
                return(NotFound());
            }

            string userId = _userManager.GetUserId(this.User);
            await _projectDbAccess.SetUserSelectedProject(userId, project.Id);

            return(Ok());
        }