Beispiel #1
0
        public static UserTotal Get(User user)
        {
            CarPoolToolEntities entities = new CarPoolToolEntities();

            var usertotals = from b in entities.Totals
                             where b.username == user.username
                             select b;
            Total total = usertotals.FirstOrDefault();

            return(new UserTotal(user, total));
        }
Beispiel #2
0
 public UserTotal(User user, Total total)
 {
     Total = total;
     User  = user;
 }