Beispiel #1
0
        public ActionResult <DashboardInfoEntity> LoadProjects(int page)
        {
            var dashboard = new DashboardInfoEntity();
            int totalSize = 0;

            dashboard.AllList           = _repository.GetProjectsByPage(page, _projectPageSize, out totalSize);
            dashboard.ProjectsTotalSize = totalSize;
            return(Ok(dashboard));
        }
Beispiel #2
0
        public ActionResult <DashboardInfoEntity> LoadAlgs(int page)
        {
            var dashboard = new DashboardInfoEntity();
            int totalSize = 0;

            dashboard.AlgorithmsList      = _repository.GetAlgsByPage(page, _algsPageSize, out totalSize);
            dashboard.AlgorithmsTotalSize = totalSize;
            return(Ok(dashboard));
        }
Beispiel #3
0
        public ActionResult <DashboardInfoEntity> Get()
        {
            var dashboard         = new DashboardInfoEntity();
            int projectsTotalSize = 0;
            int algsTotalSize     = 0;

            dashboard.FavoriteList        = _repository.GetFavoritesProjects();
            dashboard.ResentList          = _repository.GetResentProjects();
            dashboard.AllList             = _repository.GetProjectsByPage(1, _projectPageSize, out projectsTotalSize);
            dashboard.ProjectsTotalSize   = projectsTotalSize;
            dashboard.AlgorithmsList      = _repository.GetAlgsByPage(1, _algsPageSize, out algsTotalSize);
            dashboard.AlgorithmsTotalSize = algsTotalSize;
            dashboard.ExecutionInfoList   = _repository.GetExecutions();
            return(Ok(dashboard));
        }