public ItemRecord GetItem(string type, int itemId) { try { var task = _adapter.Get <ItemRecord>(_tableName, type, itemId.ToString().PadLeft(10, '0')); task.Wait(); return(task.Result); } catch (Exception e) { Log.Error().Exception(e).Message($"Failed to get item for type {type} and item id {itemId}").Write(); } return(null); }