public IActionResult GetUserTable(int userId) { try { var userTable = _playTableService.GetUserTable(userId); var model = _mapper.Map <PlayTableModel>(userTable); return(Ok(model)); } catch (AppException ex) { return(BadRequest(new { message = ex.Message })); } }