示例#1
0
 public Course Get(int id)
 {
     return(_ctx.GetCourse(id));
 }
示例#2
0
 public ActionResult <List <Course> > GetCourse()
 {
     return(_service.GetCourse());
 }
示例#3
0
        public ActionResult Index()
        {
            var courses = _cs.GetCourse();

            return(View(courses));
        }