Example #1
0
        public static bool GetLastWayBill(int waybillbook, int waybillbookno, int busid)
        {
            var data = WayBillRepository.GetLastWayBillSerial(waybillbookno, busid);

            if (data == 0)
            {
                return(true);
            }
            if (waybillbook - data == 1)
            {
                return(true);
            }

            return(false);
        }