public HttpResponseMessage GetWorkersHours(int projectId) => new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <List <Object> >(TeamLeaderLogic.getWorkersHours(projectId), new JsonMediaTypeFormatter()) };
public HttpResponseMessage GetWorkersHours(int projectId) => new HttpResponseMessage(HttpStatusCode.OK) { //curl -X GET -v http://localhost:59628/api/getWorkersHours/11 Content = new ObjectContent <List <Object> >(TeamLeaderLogic.getWorkersHours(projectId), new JsonMediaTypeFormatter()) };