Example #1
0
        private void btnAllocate_Click(object sender, EventArgs e)
        {
            Booking booking   = new Booking();
            int     eid       = GetEmployeeId();
            string  busNumber = ddlBusNumbers.SelectedItem.ToString();

            if (booking.AllocateBusForEmployee(eid, busNumber))
            {
                MessageBox.Show("Success!!!! Employee is now allocated a bus. Tada....");
            }
        }