コード例 #1
0
 public ActionResult Index()
 {
     var context = new CourseContext();
     var courses = context.Courses.ToList();
     return View();
 }
コード例 #2
0
 /// <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();
 }