Exemplo n.º 1
0
        public static async Task <List <MessageInfoHistory> > GetMessageInfoHistoriesAsync(
            MessageInfoHistoryRequest messageInfoHistryRequest)
        {
            List <MessageInfoHistory> infoHistoriesAsync = await CartableManager.ctbHandler.GetMessageInfoHistoriesAsync(messageInfoHistryRequest);

            return(infoHistoriesAsync);
        }
Exemplo n.º 2
0
        public async Task <HttpResponseMessage> GetMessageInfoHistories([FromUri] MessageInfoHistoryRequest messageHistoryRequest)
        {
            try
            {
                SecurityManager.ThrowIfUserContextNull();
                messageHistoryRequest.FetchHistoryMode = FetchHistoryMode.UpToCurrentState;
                List <MessageInfoHistory> messageInfoHistoryList = await CartableManager.GetMessageInfoHistoriesAsync(messageHistoryRequest);

                return(Request.CreateResponse(HttpStatusCode.OK, new { resultCode = (int)ResultCode.Successful, data = messageInfoHistoryList }));
            }
            catch (Exception ex)
            {
                return(await this.HandleExceptionAsync(ex));
            }
        }
Exemplo n.º 3
0
 public static List <MessageInfoHistory> GetMessageInfoHistories(
     MessageInfoHistoryRequest messageInfoHistryRequest)
 {
     return(CartableManager.ctbHandler.GetMessageInfoHistories(messageInfoHistryRequest));
 }