Пример #1
0
        public bool doActionTrading(string method, int idTrading)
        {
            TradingDAO tradingdao = new TradingDAO();

            switch (method)
            {
            case "Delete":     //Delete
                return(tradingdao.deleteTradingBook(idTrading));

            case "Accept":     //Accept
                return(tradingdao.acceptTrading(idTrading));

            case "Reject":     //Reject
                return(tradingdao.rejectTrading(idTrading));

            case "Complete":     //Complete
                return(tradingdao.completeTrading(idTrading));
            }
            return(false);
        }