Пример #1
0
 public HttpResponseMessage GetById(int id)
 {
     try
     {
         ItemResponse <ChatMessage> response = new ItemResponse <ChatMessage>();
         response.Item = _chatMessageService.GetById(id);
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }