/// <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); }
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); }
/// <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); }