Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public IDataResult <UserFindex> GetFindexByUserId(int id)
 {
     return(new SuccessDataResult <UserFindex>(_userFindexDal.Get(f => f.UserId == id)));
 }