public async Task <ValidationResult> MoveCardBetweenColumns(MoveCardBetweenColumnsDTO moveCardBetweenColumnsDTO) { return(await _mediatorHandler.SendCommand(new MoveCardBetweenColumnsCommand(moveCardBetweenColumnsDTO.BoardId, moveCardBetweenColumnsDTO.FromColumnId, moveCardBetweenColumnsDTO.ToColumnId, moveCardBetweenColumnsDTO.CardId, moveCardBetweenColumnsDTO.CardPriorityInColumn))); }
public async Task <IActionResult> MoveCardBetweenColumns([FromBody] MoveCardBetweenColumnsDTO moveCardBetweenColumnsDTO) { return(!ModelState.IsValid ? CustomResponse(ModelState) : CustomResponse(await _boardAppService.MoveCardBetweenColumns(moveCardBetweenColumnsDTO))); }