// GET: Tractor public ActionResult Index() { using (var dbContext = new TractorContext()) { return(View(TractorViewModel.Translate(new TractorRepository(dbContext).GetTractors()))); } }
public RepositoryBase(TractorContext context) { Context = context; }
public TractorRepository(TractorContext context) : base(context) { }