コード例 #1
0
 public HttpResponseMessage ExecuteMailQueue()
 {
     EmailService emailService = new EmailService();
     bool result = emailService.ExecuteMailQueue();
     if (result)
         return Request.CreateResponse(HttpStatusCode.OK, true);
     else
         return Request.CreateResponse(HttpStatusCode.InternalServerError, false);
 }