It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened,
visit the help center。
9年前关闭。
我写了以下webservice,当找不到项目时,我只希望该webservice方法返回
<error> No Project Found </error>
而没有其他任何东西。
Project GetProject(int Project_id)
{
Project dmo = new Project();
ProjectDAO dao = new ProjectDAO();
dmo = dao.GetProject(Project_id);
return dmo;
}