예제 #1
0
        public IActionResult Create()
        {
            var cursadaViewModel = new CursadaCreateViewModel();

            cursadaViewModel.AulasDisponibles = _aulaService.GetAll();
            return(View(cursadaViewModel));
        }
예제 #2
0
        public IActionResult Index()
        {
            IEnumerable <Aula> aulas = _aulaService.GetAll();

            return(View(aulas));
        }
예제 #3
0
 public IActionResult Get()
 {
     return(Ok(_aulaService.GetAll()));
 }