Exemple #1
0
        public IActionResult Index()
        {
            var result = _interactor.GetListResources();

            var viewModel = new ResourceListViewModel().MapToEntity(result);

            return(View(viewModel));
        }
Exemple #2
0
        public IActionResult Index()
        {
            var projects  = _projectInteractor.GetProjectList(false);
            var resources = _resourceInteractor.GetListResources();

            var viewModel = new DashBoardModel()
            {
                ProjectLists  = projects,
                ResourceLists = resources
            };

            return(View(viewModel));
        }