[Route("api/v1/project/list/{employee_id?}")] //project list of active client public HttpResponseMessage GetProjectListByEmployee(int employee_id) //c_id client_id , status project_status { HttpResponseMessage response = null; try { List <ProjectModel> Project_List = ProjectRepo.GetProjectListByEmployee(employee_id); 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); }