コード例 #1
0
 public IActionResult SetOnTable(int tableId, int userId)
 {
     try
     {
         bool userOnTable = _playTableService.SetOnTable(userId, tableId);
         if (userOnTable)
         {
             return(Ok());
         }
         else
         {
             return(NoContent());
         }
     }
     catch (AppException ex)
     {
         return(BadRequest(new { message = ex.Message }));
     }
 }