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