//use DbContext public void GetAll() { //use Db get student list var Orders = Db.Queryable <Orders>().ToList(); //use StudentDb get student list var events = EventsDb.GetList(); //StudentDb.GetById //StudentDb.Delete //StudentDb.Update //StudentDb.Insert //StudentDb.GetPageList //.... //SchoolDb.GetById //.... }
public List <Events> GetEvetns() { return(EventsDb.GetList()); }