public User GetUser(string loginName, string password)
 {
     using (ProjectDBEntities DB = new ProjectDBEntities())
     {
         return(DB.Users.FirstOrDefault(User => User.LoginName == loginName && User.Password == password));
     }
 }