コード例 #1
0
        public async Task <IActionResult> Post([FromBody] UserRoundCompletedsDto data)
        {
            SuccessDto res = new SuccessDto();

            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            res.Success = await _roundServices.CreateRounds(data);

            if (res.Success == true)
            {
                return(Ok(res));
            }
            return(BadRequest(res));
        }