public Invoice Get(int id) { return(_invoiceDal.Get(i => i.InvoiceId == id)); }
public IDataResult <Invoice> GetById(int invoiceId) { return(new SuccessDataResult <Invoice>(_invoiceDal.Get(i => i.Id == invoiceId))); }