Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            CreateTaskInputModel model = new CreateTaskInputModel
            {
                // Populate drop-down menus' options
                TaskTypes    = await tasksService.GetAllTaskTypesAsync(),
                TaskStatuses = await tasksService.GetAllTaskStatusesAsync(),
            };

            return(View(model));
        }