Esempio n. 1
0
        public IActionResult Create()
        {
            var cursadaViewModel = new CursadaCreateViewModel();

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

            return(View(aulas));
        }
Esempio n. 3
0
 public IActionResult Get()
 {
     return(Ok(_aulaService.GetAll()));
 }