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 })); }
public string Get(int id) { return(_service.GetColumnById(id)); }