Exemple #1
0
        public async Task <IActionResult> Index(int?id)
        {
            PlanViewModel viewModel = id == null
                ? PlansConverters.EntityToViewModel(
                board : await _plansService.CreatePlan(new ServiceContext()
            {
                ContextId = "TEST"
            }),
                statuses : await _plansService.GetDefaultStatuses(new ServiceContext())
                )
                : PlansConverters.EntityToViewModel(
                board: await _plansService.GetSprintPlan(new ServiceContext()
            {
                ContextId = "TEST"
            }, (int)id),
                statuses: await _plansService.GetDefaultStatuses(new ServiceContext())
                );

            return(View(viewModel));
        }