title: how to display table data or pass view  data on site.master page in asp mvc2
body: <p>i want to show my table data  on site.master page and display that data all action method plz any one help me or give me sample code  my model and controller code is here</p>
  
  <pre><code>    namespace DomainModel.Entities
    {
  
      [Table(Name = "Requirements")]
  public class Requirement
  
    {
  public int  RequirementID{ get; set; }
   [Column] public int Experience { get; set; }
   [Column] public string JobTitle { get; set; }
   [Column] public string Qualification { get; set; }
   [Column] public string Location { get; set; }
   [Column] public int Budget { get; set; }
   [Column] public DateTime Date { get; set; } 
        }
  
         }
  </code></pre>
  
  <p>my Repository code is here</p>
  
  <pre><code>namespace DomainModel.Concrete
   {
  public class SqlCandidateRepository : ICandidateRepository
  {
  
   private Table&lt;Requirement&gt; Requirementtable;
  
    public SqlCandidateRepository(string connectionString)
      {
  
    Requirementtable = (new DataContext(connectionString)).GetTable&lt;Requirement&gt;();
  
     public IQueryable&lt;Requirement&gt; NewRequirement()
      { 
      return  from d in Requirementtable where d.Date&gt;=System.DateTime.Now select d;
  
      }
  </code></pre>
  
  <p>here is my controller code</p>
  
  <pre><code>  public ActionResult ShownewRequirement()
      {
  
       ViewData[" requirement"] = IcandidateRepository.NewRequirement();
        return View();
  
      }
  </code></pre>