public HttpResponseMessage GetHours(int projectId)
 {
     return(new HttpResponseMessage(HttpStatusCode.OK)
     {
         Content = new ObjectContent <String>(TeamLeaderLogic.GetHours(projectId), new JsonMediaTypeFormatter())
     });
 }
예제 #2
0
 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())
     });
 }