Example #1
0
        public async Task <IActionResult> GetProject(Guid id)
        {
            var projectService = new ListProjectService(_context);

            return(new ObjectResult(await projectService.GetProjectDetails(id)));
        }
Example #2
0
 public StartWindowViewModel()
 {
     _optimazationContext = BootStrapper.Resolve <OptimizationContext>();
     _projectService      = new ListProjectService(_optimazationContext);
 }
Example #3
0
        public async Task <IActionResult> GetProjects()
        {
            var projectService = new ListProjectService(_context);

            return(new ObjectResult(await projectService.GetProjectSummary()));
        }