public IEnumerable <ListReleaseInvoice> GetByAccTemp(int acc, string temp) { var spec = ListReleaseInvoiceQuery.WithByAccountId(acc); spec = spec.And(ListReleaseInvoiceQuery.WithByTemplateCode(temp)); return(_listReleaseInvoice.Find(spec)); }
public IEnumerable <ListReleaseInvoice> GetByTemplateId(string tempCode, int accountId = -1) { var spec = ListReleaseInvoiceQuery.WithByTemplateid(tempCode); spec = accountId != -1 ? spec.And(ListReleaseInvoiceQuery.WithByAccountId(accountId)) : spec; return(_listReleaseInvoice.Find(spec)); }
public IEnumerable <ListReleaseInvoice> GetByAcc(int acc) { var spec = ListReleaseInvoiceQuery.WithByAccountId(acc); return(_listReleaseInvoice.Find(spec)); }