Beispiel #1
0
        public async Task <IActionResult> GetMateriasAsync()
        {
            try
            {
                var materias = await _materiaService.SelectAllMateriasAsync();

                return(Ok(materias));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }