コード例 #1
0
        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);
        }
コード例 #2
0
 public Debit GetById(int id)
 {
     return(_debitDal.Get(x => x.DebitID == id));
 }