예제 #1
0
 public HttpResponseMessage AddOrUpdateMachine(HttpRequestMessage request, [FromBody] MachineViewModel machineVm)
 {
     return(CreateHttpResponse(request, () =>
     {
         ResponseViewModel rm = new ResponseViewModel();
         _iMachineService.AddUpdateMachineRecords(machineVm);
         return Request.CreateResponse(HttpStatusCode.OK, rm);
     }));
 }