public MissionEntity GetOneByPredicate(Expression <Func <MissionEntity, bool> > f) { var visitor = new MyExpressionVisitor <MissionEntity, DalMission>(Expression.Parameter(typeof(DalMission), f.Parameters[0].Name)); var exp2 = Expression.Lambda <Func <DalMission, bool> >(visitor.Visit(f.Body), visitor.NewParameterExp); return(missionRepository.GetOneByPredicate(exp2).GetBllEntity()); }