Beispiel #1
0
 public async Task <IActionResult> AddDeck([FromBody] DeckDto deck)
 {
     try
     {
         await _deckService.AddItem(GetUserName(), deck);
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
     return(Ok());
 }