public void Execute(UpdatePlotsCommand command)
        {
            var filters = _filterRepository.GetAll();

            var query = _rowRepository.GetAll();

            var predicates = filters
                             .Select(p => p.CreatePredicate())
                             .ToList();

            predicates.ForEach(p => query = query.Where(p));

            var rows = query.ToList();

            var scatterPlot = _viewRepository.Get <ScatterPlot>();

            var layout = scatterPlot.GetLayout();

            var plots = _renderer.RenderPlots(rows, layout);

            scatterPlot.SetPlots(plots);
        }
 public List <Row> Execute(GetAllRowsQuery query)
 {
     return(_repository.GetAll().ToList());
 }