public async Task <ValidationResult> UpdateColumnPositionInBoard(UpdateColumnPositionInBoardDTO updateColumnPositionInBoardDTO) { return(await _mediatorHandler.SendCommand(new UpdateColumnPositionInBoardCommand(updateColumnPositionInBoardDTO.BoardId, updateColumnPositionInBoardDTO.ColumnId, updateColumnPositionInBoardDTO.NewColumnPositionInBoard))); }
public async Task <IActionResult> UpdateColumnPositionInBoard([FromBody] UpdateColumnPositionInBoardDTO updateColumnPositionInBoardDTO) { return(!ModelState.IsValid ? CustomResponse(ModelState) : CustomResponse(await _boardAppService.UpdateColumnPositionInBoard(updateColumnPositionInBoardDTO))); }