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)); }
public IDataResult <FindeksScore> GetByCustomerId(int customerId) { return(new SuccessDataResult <FindeksScore>(_findeksScoreDal.Get(f => f.CustomerId == customerId))); }