Exemple #1
0
 public ProfileService(TennisConnectDbContext context, IUserService userService, IClubService clubService, IAddressService addressService)
 {
     _context        = context;
     _userService    = userService;
     _clubService    = clubService;
     _addressService = addressService;
 }
Exemple #2
0
        private bool GetAddressReferences(int addressId)
        {
            var query = _context.Addresses
                        .Where(x => x.Id == addressId)
                        .Select(d => TennisConnectDbContext.GetAddressReferences(addressId));

            return(query.FirstOrDefault());
        }
Exemple #3
0
 public UserService(TennisConnectDbContext context)
 {
     _context = context;
 }
 public AddressService(TennisConnectDbContext context)
 {
     _context = context;
 }
Exemple #5
0
 public FriendService(TennisConnectDbContext context)
 {
     _context = context;
 }