Exemplo n.º 1
0
        // GET: Course/Edit/5
        public ActionResult Edit(long id = 0)
        {
            var model      = _courseSrv.GetCourseById(id);
            var categories = _courseSrv.GetCourseCategoryList(new CourseCategoryQuery()
            {
                PageSize = int.MaxValue
            });

            ViewBag.Coachers = _coacherSrv.GetAllList(new CoacherQuery()
            {
                PageSize = int.MaxValue
            }).Where(x => x.Status == EnumCoachStatus.On);
            ViewBag.categories = categories;
            return(View(model));
        }
Exemplo n.º 2
0
        public ActionResult Index(CoacherQuery query)
        {
            var items = _coacherSrv.GetAllList(query);

            return(View(items));
        }