[Route("api/v1/entire/project/list/{client_id?}/{status?}")] //entire project list (include active and incative client projects ) public HttpResponseMessage GetEntireProjectList(int client_id = 0, string status = null) //c_id client_id , status project_status { HttpResponseMessage response = null; try { List <ProjectModel> Project_List = ProjectRepo.GetEntireProjectList(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); }