public HttpResponseMessage PurgeHistory(HistoryDTO postData)
        {
            try
            {
                LiveChatManager.Instance.PurgeHistory(postData.Items);

                return(Request.CreateResponse(HttpStatusCode.OK, new { Success = true }));
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message));
            }
        }
Ejemplo n.º 2
0
        public HttpResponseMessage PurgeHistory(HistoryDTO postData)
        {
            try
            {
                LiveChatManager.Instance.PurgeHistory(postData.Items);

                return Request.CreateResponse(HttpStatusCode.OK, new { Success = true });
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                return Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message);
            }
        }