public JsonResult GetGroups()
        {
            WeeklyClassesRepository repository = new WeeklyClassesRepository();

            List <WeeklyClasses> classes = repository.GetAll();

            return(new JsonResult {
                Data = classes, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
        }
        // GET: Events
        public ActionResult Index()
        {
            WeeklyClassesRepository repository    = new WeeklyClassesRepository();
            List <WeeklyClasses>    weeklyClasses = repository.GetAll();

            weeklyClasses.Reverse();

            WeeklyclassesListViewModel model = new WeeklyclassesListViewModel();

            model.WeeklyClasses = weeklyClasses;

            return(View(model));
        }