public IDataResult <Debit> GetById(Guid debitId) { var debit = debitDal.Get(d => d.Id == debitId); if (debit != null) { return(new SuccessDataResult <Debit>(debit)); } throw new ObjectNotFoundException(Messages.DebitNotFound); }
public Debit GetById(int id) { return(_debitDal.Get(x => x.DebitID == id)); }