public IActionResult Create([FromBody] CreateLotteryDrawCommand lotteryDrawCommand) { try { _lotteryService.CreateDraw(lotteryDrawCommand); return(new OkResult()); } catch (Exception ex) { return(new BadRequestObjectResult(ex.Message)); } }
public IActionResult Create([FromBody] CreateLotteryDrawCommand lotteryDrawCommand) { try { _lotteryService.CreateDraw(lotteryDrawCommand); return(new OkResult()); } catch (Exception ex) { return(new BadRequestObjectResult(ex.Message)); } }