// GET: Modules/Details/5
        public async Task <ActionResult> Details(int?moduleId)
        {
            if (moduleId == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            var module = await modulesService.Get((int)moduleId);

            if (module == null)
            {
                return(HttpNotFound());
            }
            return(View(module));
        }
Exemplo n.º 2
0
 public ActionResult Get(string courseId)
 {
     return(new JsonResult(modulesService.Get(courseId)));
 }