Esempio n. 1
0
        public string VerifyUser(TestTicketContext _context)
        {
            var userID = (from u in _context.Users
                          where u.Username.Equals(UserName) &&
                          u.Password.Equals(Password)
                          select u).FirstOrDefault();

            if (userID != null)
            {
                return(userID.ID.ToString());
            }
            else
            {
                return(null);
            }
        }
 public TicketListViewController(TestTicketContext context)
 {
     _context = context;
 }