public int GetInvoiceItemsCount(Guid invoiceId) { if (!CurrentUser.HasRole(UserRole.Member)) { throw new DomainValidationException(Messages.InsufficientSecurityClearance); } return(_invoiceItemRepository.GetInvoiceItemsCount(invoiceId)); }
public int GetInvoiceItemsCount(Guid invoiceId) { if (!CurrentUser.HasRole(UserRole.Member)) { throw new DomainValidationException(Messages.InsufficientSecurityClearance); } return(_invoiceItemRepository.GetInvoiceItemsCount(invoiceId)); }