public T Get(string id) { try { return(_fileContext.ReadItem(id) ?? throw new EntityNotFoundException()); } catch (FileContextException e) { if (e.Code == FileContextExceptionCode.ItemNotFound) { throw new EntityNotFoundException(); } throw; } }