Exemple #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var result = await _service.FindAll();

                return(Ok(result));
            }
            catch (Exception e)
            {
                return(StatusCode(500, e));
            }
        }