public IEnumerable <LotEntity> GetActiveLots() { var creater = new ExpressionCreater <DalLot>(); try { var query = creater.GetExpression(new[] { new KeyValuePair <string, object>("IsConfirm", true), new KeyValuePair <string, object>("IsBlocked", false) }); var result = _lotRepository.GetByPredicateMany(query); return(result.Select(t => t.ToLotEntity())); } catch (Exception e) { Log.LogError(e); return(new List <LotEntity>()); } }