Esempio n. 1
0
 public Response AddActionToQueue(TestRequest r)
 {
     return(WcfRequestHandler.Try(() =>
     {
         _testLogic.AddActionToQueue(r.Text);
         return new Response
         {
             Message = "Action added to queue",
             ResultCode = ResultCode.OK
         };
     }, r));
 }
Esempio n. 2
0
 public Response HelloWorld(TestRequest r)
 {
     //Try
     //Logic
     return(WcfRequestHandler.Try(() =>
     {
         _testLogic.InsertData(r.Text);
         return new Response
         {
             Message = "Hello World",
             ResultCode = ResultCode.OK
         };
     }, r));
 }