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