title: How to get objects in a razor template in Tridion?
body: <p>I am writing a common Razor TBB, which will use in Component Template and Page template as per my requirement.</p>
  
  <p>So that, I need a Page and Component object in the razor TBB according to applying TBB on Page Template and component Template</p>
  
  <p>My requirement to display/use the metadata field values from Page/Component in specific area of the page.   </p>
  
  <p>That's why, i want to access metadata values by the object but unable to get the object,</p>
  
  <p>Please also follow-up my comments with Frank. </p>
  
  <p>Can any one suggest me?</p>