コード例 #1
0
        public async Task <IActionResult> AddBadgeAsync([FromBody] BadgeForAddDTO badgesForAddDTO)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var result = await _service.AddBadgeAsync(badgesForAddDTO);

            return(Ok(result));
        }