예제 #1
0
 public static SecretSanta GetSecretSanta()
 {
     using (thescruffsterDataContext db = new thescruffsterDataContext())
     {
         var secretSantaRow = db.SecretSantas.SingleOrDefault(x => x.UserID == GetUserID());
         return(secretSantaRow);
     }
 }
예제 #2
0
 public Brownley GetWishListHistory()
 {
     using (thescruffsterDataContext db = new thescruffsterDataContext())
     {
         var ss          = db.SecretSantas.SingleOrDefault(x => x.UserID == GetUserID());
         var brownleyRow = db.Brownleys.SingleOrDefault(x => x.Name == ss.Name);
         return(brownleyRow);
     }
 }