public HttpResponseMessage GetHours(int projectId) { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <String>(TeamLeaderLogic.GetHours(projectId), new JsonMediaTypeFormatter()) }); }
public HttpResponseMessage GetHours(int projectId) //curl -X GET -v http://localhost:59628/api/GetHours/10/1 { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new ObjectContent <String>(TeamLeaderLogic.GetHours(projectId), new JsonMediaTypeFormatter()) }); }