Exemplo n.º 1
0
 public bool IsValid(StudentUser other)
 {
     if (other.UserName == UserName && other.Password == Password)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
        private void Init()
        {
            Months = new List <CustomEventMonth>();
            User   = new StudentUser("NO NAME", SchoolCourses.VisAlt, "second");
            Rooms  = new List <Room>();
            var db = new CalendarEventContext();

            eventUserStats = new List <EventUserStat>(db.EventUserStats);
        }