Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public UserTotal(User user, Total total)
 {
     Total = total;
     User  = user;
 }