public static async Task <List <MessageInfoHistory> > GetMessageInfoHistoriesAsync( MessageInfoHistoryRequest messageInfoHistryRequest) { List <MessageInfoHistory> infoHistoriesAsync = await CartableManager.ctbHandler.GetMessageInfoHistoriesAsync(messageInfoHistryRequest); return(infoHistoriesAsync); }
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)); } }
public static List <MessageInfoHistory> GetMessageInfoHistories( MessageInfoHistoryRequest messageInfoHistryRequest) { return(CartableManager.ctbHandler.GetMessageInfoHistories(messageInfoHistryRequest)); }