RepoContact.cs 821 B

123456789101112131415161718192021
  1. using Quadarax.Application.QLiberace.Common.Repositories;
  2. using Quadarax.Application.QLiberace.Common.Domain;
  3. using Quadarax.Application.QLiberace.Customer.Entities;
  4. using Quadarax.Foundation.Core.Data.Domain;
  5. using Quadarax.Foundation.Core.Data.Interface;
  6. using Quadarax.Foundation.Core.Data.Interface.Domain;
  7. namespace Quadarax.Application.QLiberace.Customer.Repositories
  8. {
  9. public class RepoContact: QlbrcTenantCodeTrackedRepository<Contact>
  10. {
  11. public RepoContact(IUnitOfWork<IDataDomain> unitOfWork, QlbrcContext operationContext) : base(unitOfWork, operationContext)
  12. {
  13. }
  14. public IQueryable<Contact> GetCustomerContacts(long customerId, IPaging paging)
  15. {
  16. return Query(paging).Where(x => x.CustomerId == customerId);
  17. }
  18. }
  19. }