public ActionResult Index() { var context = new CourseContext(); var courses = context.Courses.ToList(); return View(); }
/// <summary> /// Initializes a new instance of the <see cref="PriceCalculationController"/> class. /// </summary> public PriceCalculationController() { context = new CourseContext(); }
/// <summary> /// Initializes a new instance of the <see cref="CourseSetController"/> class. /// </summary> public CourseSetController() { this.context = new CourseContext(); }
public LocationsController() { context = new CourseContext(); }