[Route("api/v1/project/list/{client_id?}/{status?}")] //project list of active client public HttpResponseMessage GetProjectList(int client_id = 0, string status = null) //c_id client_id , status project_status { HttpResponseMessage response = null; try { List <ProjectModel> Project_List = ProjectRepo.GetProjectList(client_id, status); response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_001", "Success", Project_List)); } catch (Exception exception) { Debug.WriteLine(exception.Message); Debug.WriteLine(exception.GetBaseException()); response = Request.CreateResponse(HttpStatusCode.OK, new EMSResponseMessage("EMS_101", "Application Error", exception.Message)); } return(response); }
public List <System_ProjectList> getProjectList() { ProjectRepo repo = new ProjectRepo(); return(repo.GetProjectList()); }