public async Task <IActionResult> AddBadgeAsync([FromBody] BadgeForAddDTO badgesForAddDTO) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _service.AddBadgeAsync(badgesForAddDTO); return(Ok(result)); }
public async Task <IActionResult> AddBadgeAsync([FromBody] BadgeForAddDTO badgesForAddDTO) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _service.AddBadgeAsync(badgesForAddDTO); return(Ok(result)); }