예제 #1
0
        public IActionResult ListarTodos()
        {
            ICollection <Telefone> obj = _service.SelectAll();

            if (obj == null || obj.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(obj));
        }