Example #1
0
        public string CheckTicket(String username, String password, String motorbikePlate)
        {
            // Check username + password
            // If not authenticate, return String.Empty

            #region Check Authentication

            if (!UserService.CheckClientAuthentication(username, password))
            {
                return(null);
            }

            #endregion Check Authentication

            // Done check
            var tmp  = TicketBusiness.SelectTypeByPlate(motorbikePlate);
            var tmp1 = MotorTypeBusiness.SelectMotorTypeByPlate(motorbikePlate);
            if (tmp == null)
            {
                return("Vé ngày");
            }
            else
            {
                return(tmp.Description);
            }
        }