public static SecretSanta GetSecretSanta() { using (thescruffsterDataContext db = new thescruffsterDataContext()) { var secretSantaRow = db.SecretSantas.SingleOrDefault(x => x.UserID == GetUserID()); return(secretSantaRow); } }
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); } }