title: Asp mvc 4 EF Repository
body: <p>I have the following code and I would like to know how can I retrieve the data from the repository, here is my code, any advice will be appreciate, thanks</p>
  
  <p>My Controller:</p>
  
  <pre><code> namespace Diploma.WebUI.Controllers
   {
     public class StudentController : Controller
     {
       EfDbContext context = new EfDbContext();
  
       public ViewResult Student()
       {
          var student = context.Students.Include(p =&gt; p.Group);
          return View(student.ToList());
       }
     }
   }
  </code></pre>
  
  <p>My Repository:</p>
  
  <pre><code>namespace Diploma.Domain.Concrete
  {
   public class EFStudentRepository : IStudentRepository
   {
      EfDbContext context = new EfDbContext();
  
       public IEnumerable&lt;Student&gt; Students
       {
         get { throw new NotImplementedException(); }
       }
  
       public IEnumerable&lt;Group&gt; Groups
       {
         get { throw new NotImplementedException(); }
       }
    }
  </code></pre>
  
  <p>and My Abstract Class</p>
  
  <pre><code>   namespace Diploma.Domain.Abstract
    {
       public interface IStudentRepository
       {
         IEnumerable&lt;Student&gt; Students { get;}
         IEnumerable&lt;Group&gt; Groups { get;} 
       }
    }
  </code></pre>