public HttpResponseMessage GetProject(int id)
 {
     return(new HttpResponseMessage(HttpStatusCode.OK)
     {
         Content = new ObjectContent <List <WorkerHours> >(WorkerLogic.GetProject(id), new JsonMediaTypeFormatter())
     });
 }
Exemple #2
0
 public HttpResponseMessage GetProject(int id)
 {
     //curl -X GET -v http://localhost:59628/api/getProject/6
     return(new HttpResponseMessage(HttpStatusCode.OK)
     {
         Content = new ObjectContent <List <Object> >(WorkerLogic.GetProject(id), new JsonMediaTypeFormatter())
     });
 }