예제 #1
0
 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();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CourseSetController"/> class.
 /// </summary>
 public CourseSetController()
 {
     this.context = new CourseContext();
 }
예제 #4
0
 public LocationsController()
 {
     context = new CourseContext();
 }