示例#1
0
 public IHttpActionResult Check()
 {
     try
     {
         return(Ok(_commonServices.CheckAvailability()));
     }
     catch (Exception)
     {
         throw new HttpResponseException(new HttpResponseMessage()
         {
             StatusCode = HttpStatusCode.ServiceUnavailable
         });
     }
 }