using Application.Api; using Application.Common.Models; using Microsoft.AspNetCore.Mvc; namespace MainServer.Controllers.API; [ApiController] [Route("api/[controller]")] public class PlayOptionController : BaseController { [HttpGet("{cardId:long}")] public async Task>> GetPlayOptionById(long cardId) { var result = await Mediator.Send(new GetPlayOptionQuery(cardId)); return result; } [HttpPost] public async Task>> SetPlayOption(PlayOptionData data) { var result = await Mediator.Send(new SetPlayOptionCommand(data)); return result; } }