public UIReturn getBranchQueue(Branch input) { Branch inputBranch = TempDB.branches.Find(s => s.branchID == input.branchID); GetBranchServicesRq req = ReserveQueueService.getInstance().getBranchServicesRq(inputBranch); GetBranchServicesRs res = ReserveQueueService.getInstance().CallGetBranchServices(req); SessionModel.services = res.services; return(getUIReturnServices(res.services)); }
public UIReturn ratingStaff(Queue input) { RatingRq req = ReserveQueueService.getInstance().getRatingRq(input); RatingRs res = ReserveQueueService.getInstance().rating(req); if (res.header.isSuccess) { SessionModel.bookingQ = null; } UIReturn ret = new UIReturn(res.header); return(ret); }
public UIReturn cancelQueue(Queue input) { CancelQueueRq req = ReserveQueueService.getInstance().getCancelQueueRq(input); CancelQueueRs res = ReserveQueueService.getInstance().cancelQueue(req); if (res.header.isSuccess) { SessionModel.bookingQ = null; } UIReturn ret = new UIReturn(res.header); return(ret); }
public UIReturn reserveQueue(Queue input) { ReserveQueueRq req = ReserveQueueService.getInstance().getReserveQueueRq(input); ReserveQueueRs res = ReserveQueueService.getInstance().CallReserveQueue(req); if (res.header.isSuccess) { SessionModel.bookingQ = res.queue; } UIReturn ret = new UIReturn(res.header); ret.returnObject = res.queue; return(ret); }
public UIReturn reserveQueue(Service input) { Service inputService = SessionModel.services.Find(s => s.serviceID == input.serviceID && s.branchID == input.branchID); ReserveQueueRq req = ReserveQueueService.getInstance().getReserveQueueRq(inputService); ReserveQueueRs res = ReserveQueueService.getInstance().CallReserveQueue(req); if (res.header.isSuccess) { SessionModel.bookingQ = res.queue; } UIReturn ret = new UIReturn(res.header); ret.returnObject = res.queue; return(ret); }