public async Task <ActionResult> Post(ColumnGroup group)
        {
            var groupResult = await _columnGroupRepo.Create(group);

            var column1 = new KanBanColumn()
            {
                Title        = "Doing",
                GroupId      = groupResult.GroupId,
                KanBanColumn = true,
            };
            var column2 = new KanBanColumn()
            {
                Title        = "Done",
                GroupId      = groupResult.GroupId,
                KanBanColumn = true,
            };

            var column1Result = _columnRepo.Create(column1);
            var column2Result = _columnRepo.Create(column2);

            return(CreatedAtAction("Post", new object[] { groupResult, await column1Result, await column2Result }));
        }
Beispiel #2
0
        public async Task <ActionResult> Post(KanBanColumn column)
        {
            var result = await _repo.Create(column);

            return(CreatedAtAction("Post", result));
        }