コード例 #1
0
        public IDataResult <UserFindex> GetByUserId(int userId)
        {
            var result = _userFindexDal.Get(ca => ca.UserId == userId);

            if (result == null)
            {
                return(new ErrorDataResult <UserFindex>("Kullanıcı'ya ait findex notu bulunamadı"));
            }
            return(new SuccessDataResult <UserFindex>(result));
        }
コード例 #2
0
 public IDataResult <UserFindex> GetFindexByUserId(int id)
 {
     return(new SuccessDataResult <UserFindex>(_userFindexDal.Get(f => f.UserId == id)));
 }