예제 #1
0
 public HttpResponseMessage GetRandom(HttpRequestMessage request, int count)
 {
     try
     {
         var result = _columnService.GetRandomColumns(count);
         return(request.CreateResponse(HttpStatusCode.OK, result));
     }
     catch (Exception ex)
     {
         return(request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message));
     }
 }