public async Task <IActionResult> GetMyProjectDetails(int projectId) { var project = await _projectQueries.GetProejctDetail(projectId); if (project.UserId == UserIdentity.UserId) { return(Ok(project)); } else { return(BadRequest("无权查看项目")); } }
public async Task <IActionResult> GetMyProjectDetails(int projectId) { var project = await _projectQueries.GetProejctDetail(projectId); if (project.UserId == UserIdentity.UserId) { return(Ok(project)); } else { return(BadRequest("无权查看项目")); } }