コード例 #1
0
        public IDataResult <FindeksScore> GetByCustomerId(int customerId)
        {
            var findeks = _findeksScoreDal.Get(f => f.CustomerId == customerId);

            if (findeks == null)
            {
                return(new ErrorDataResult <FindeksScore>(Messages.FindeksScoreNotFound));
            }
            return(new SuccessDataResult <FindeksScore>(findeks));
        }
コード例 #2
0
 public IDataResult <FindeksScore> GetByCustomerId(int customerId)
 {
     return(new SuccessDataResult <FindeksScore>(_findeksScoreDal.Get(f => f.CustomerId == customerId)));
 }