Access the context item
Version: 10.4
In presentation and other components, processing often begins with the context item. You can access the context item using the Sitecore.Context.Item property. For example, to access the context item:
RequestResponse
Sitecore.Data.Items.Item contextItem = Sitecore.Context.Item ;