/// <summary> /// Initializes a new instance of the <see cref="MultiTenantServices{TEntity, TId}"/> class. /// </summary> /// <param name="repository">The repository.</param> protected MultiTenantServices(IMultiTenantRepository <TEntity, TId> repository) { _repository = repository; }
public static Task <IQueryable <Hotel> > GetAllByResortId(this IMultiTenantRepository <Hotel, int> hotelRepository, System.Guid tenantId, int resortId) { return(hotelRepository.FindByAsync(tenantId, x => x.ResortId == resortId)); }
public CountryService(IMultiTenantRepository<Country, int> repository) : base(repository) { _repository = repository; }