i have a generic repository
public TEntity GetByCondition(Func<TEntity, Boolean> where)
{
return DbSet.Where(where).FirstOrDefault<TEntity>();
}
i need to get the selected records based on condition;
public IEnumerable<ResultEntity> GetResultByParams(string _RollNo, string _Class)
{
var result = _unitOfWork.ResultRepository.GetByCondition(); // i need to check ondition of _RollNo here. Please guide me the usage.
}
// how to use the var result = _unitOfWork.ResultRepository.GetByCondition(); with condition
, List>(resultInfo.ToList());
return ResultModel;
}
return null;