public async Task <IActionResult> GetRecommendProjectDetail(int projectId) { if (await recommend.IsProjectInRecommendAsync(projectId, UserIdentity.UserId)) { return(Ok(await projectQueries.GetProjectDetail(projectId))); } else { return(BadRequest("无权查看该项目")); } }