예제 #1
0
 public HttpResponseMessage GetAll()
 {
     try
     {
         ItemsResponse <ChatMessage> response = new ItemsResponse <ChatMessage>();
         response.Items = _chatMessageService.GetAll();
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }