public JsonResult ConfirmExchangeCache(List <ExchangeHistoryModel> models)
        {
            DSClient client = new DSClient(Models.Const.ApplicationId);
            int      userId;
            string   token;
            string   message = string.Empty;
            bool     success = false;

            if (GetToken(out userId, out token))
            {
                List <ExchangeHistory> histories = new List <ExchangeHistory>();
                foreach (ExchangeHistoryModel model in models)
                {
                    if (model.Status == (int)RequestStatus.Processed)
                    {
                        histories.Add(model.GetConcretModelEntity <ExchangeHistory>());
                    }
                }
                try
                {
                    client.ConfirmExchangeCache(userId, token, histories);
                    success = true;
                }
                catch (DatabaseException exception)
                {
                    message = exception.Message;
                }
            }
            return(Json(new { Success = success, Message = message }, JsonRequestBehavior.AllowGet));
        }