コード例 #1
0
 public IActionResult UpdateUserChallenge(int id, [FromQuery] int userId, [FromBody] UserChallengesDto challenge)
 {
     try
     {
         _service.UpdateUserChallenge(id, userId, challenge);
         return(Ok());
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
     return(BadRequest());
 }