public RedirectToRouteResult DoCreate(ClassDTO model)
        {
            classRepository.Add(new Class(model.Name, model.Credits));

            return RedirectToRoute(new
            {
                action = "Index",
                controller = "Class"
            });
        }
        public RedirectToRouteResult DoCreate(ClassDTO model)
        {
            var cmd = new CreateClassCommand(Guid.NewGuid(), model.Name, model.Credits);
            commandBus.Send(cmd);

            return RedirectToRoute(new
            {
                action = "Index",
                controller = "Class"
            });
        }