Example #1
0
        /// <summary>
        /// Method to get  refill order by order_id
        /// </summary>
        /// <returns>Data table</returns>
        public RefillModel GetRefillReportByOrderId(int orderId)
        {
            AtmService  atmService   = new AtmService();
            RefillModel refillReport = new RefillModel();

            refillReport     = this.orderAccess.GetRefillReportByOrderId(orderId);
            refillReport.ATM = atmService.GetAtmData(refillReport.ATM.Id);
            return(refillReport);
        }
Example #2
0
        public MalfunctionReportModel GetMalfunctionReportByOrderId(int orderId)
        {
            AtmService             atmService        = new AtmService();
            MalfunctionReportModel malfunctionReport = new MalfunctionReportModel();

            malfunctionReport     = this.orderAccess.GetMalfunctionReportByOrderId(orderId);
            malfunctionReport.ATM = atmService.GetAtmData(malfunctionReport.ATM.Id);

            return(malfunctionReport);
        }
Example #3
0
        /// <summary>
        /// Method to get  error order by order_id
        /// </summary>
        /// <returns>Data table</returns>
        public ErrorReportModel GetErrorReportByOrderId(int orderId)
        {
            AtmService       atmService  = new AtmService();
            ErrorReportModel errorReport = new ErrorReportModel();

            errorReport     = this.orderAccess.GetErrorReportByOrderId(orderId);
            errorReport.ATM = atmService.GetAtmData(errorReport.ATM.Id);

            return(errorReport);
        }