예제 #1
0
        public Card UpdateCardBoard(UpdateCardBoardDTO dto)
        {
            Card card = this.GetById(dto.CardId);

            card.BoardId = dto.BoardId;
            return(Update(card));
        }
예제 #2
0
        public async Task <IActionResult> UpdateBoard([FromBody] UpdateCardBoardDTO item)
        {
            try
            {
                if (item == null)
                {
                    return(NotFound());
                }

                service.UpdateCardBoard(item);

                return(new ObjectResult(item));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex));
            }
        }