public async Task <IActionResult> GetById()
        {
            apiSettings.Action = "getbyid";
            apiSettings.Id     = 4;
            VMCourse course = await _apiHelper.GetRequest(apiPath, apiSettings);

            return(View(course));
        }
Exemple #2
0
        public ActionResult Index()
        {
            ViewBag.Courses = true;
            VMCourse coursemodel = new VMCourse();

            coursemodel.BGImage = db.BGImages.FirstOrDefault(b => b.Page == "Course");
            coursemodel.Courses = db.Courses.ToList();
            return(View(coursemodel));
        }