﻿using System.Linq;

namespace GSB.Data
{
    public class RequestUser
    {
        public static bool CheckUserAndPassword(string username, string password)
        {
            bool exists = true;

            using (var context = new ModelContainer())
            {
                exists = context.users.Any(user => user.Username == username && user.Password == password);
            }

            return exists;
        }
    }
}
