Beispiel #1
0
        public override string Cancel(DBManagement.Ticket ticket, decimal returnFee)
        {
            string errorMessage = AutoSync.GetInstance().CheckServerIsFree();

            if (string.IsNullOrEmpty(errorMessage))
            {
                errorMessage = ServerConnector.GetInstance().CancelTicketRequest(ticket);
            }
            errorMessage = HandleRequestResult(errorMessage);

            return(string.IsNullOrEmpty(errorMessage) == false ? errorMessage : base.Cancel(ticket, returnFee));
        }
Beispiel #2
0
        public override string Update(DBManagement.Ticket entity)
        {
            string errorMessage = AutoSync.GetInstance().CheckServerIsFree();

            if (string.IsNullOrEmpty(errorMessage))
            {
                errorMessage = ServerConnector.GetInstance().UpdateTicketRequest(entity);
            }
            errorMessage = HandleRequestResult(errorMessage);

            return(string.IsNullOrEmpty(errorMessage) == false ? errorMessage : base.Update(entity));
        }