コード例 #1
0
 public HttpResponseMessage GetWorkersDeatails(int teamLeaderId) => new HttpResponseMessage(HttpStatusCode.OK)
 {
     Content = new ObjectContent <List <User> >(TeamLeaderLogic.GetWorkersDeatails(teamLeaderId), new JsonMediaTypeFormatter())
 };
コード例 #2
0
 public HttpResponseMessage GetWorkersDeatails(int teamLeaderId) => new HttpResponseMessage(HttpStatusCode.OK)
 {
     //curl -X GET -v http://localhost:59628/api/getWorkersDeatails/11
     Content = new ObjectContent <List <Worker> >(TeamLeaderLogic.GetWorkersDeatails(teamLeaderId), new JsonMediaTypeFormatter())
 };