Esempio n. 1
0
 public BeenThereUser GetUserWithExperiencesByName(string userName)
 {
     using (var context = new BTContext())
     {
         return(context.Users.Where(u => u.UserName == userName).Include(l => l.Experiences).FirstOrDefault());
     }
 }
Esempio n. 2
0
 public List <BeenThereUser> AllUsersWithExperiences()
 {
     using (var context = new BTContext())
     {
         return(context.Users.Include(l => l.Experiences).ToList());
     }
 }