添加过滤状态
This commit is contained in:
@@ -14,12 +14,12 @@ namespace WebAPI.Controllers
|
||||
public class ProjectController : ApiController
|
||||
{
|
||||
#region
|
||||
public Model.ResponeData getALLProjects()
|
||||
public Model.ResponeData getALLProjects(string status = "1")
|
||||
{
|
||||
Model.ResponeData responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
List<Model.ProjectItem> projectList = BLL.APIProjectService.geProjects();
|
||||
List<Model.ProjectItem> projectList = BLL.APIProjectService.geProjects(status);
|
||||
responeData.data = projectList;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user