public Card UpdateCardBoard(UpdateCardBoardDTO dto) { Card card = this.GetById(dto.CardId); card.BoardId = dto.BoardId; return(Update(card)); }
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)); } }