Example #1
0
        public async Task <IActionResult> Index(string title, int columnId)
        {
            _columnId = columnId;
            var task = new ProjectTask()
            {
                Title = title,
            };
            await _columnService.AddTaskToColumn(task, _columnId);

            var column = await _columnService.GetColumnById(_columnId);

            return(RedirectToAction("Index", "ProjectView", new{ projectId = column.Project.Id }));
        }