Exemplo n.º 1
0
        public IActionResult Get()
        {
            IEnumerable <Character> characters = null;

            characters = _characterRepo.GetAllCharacters();
            return(Ok(characters));
        }
Exemplo n.º 2
0
 public async Task <IActionResult> GetAll()
 {
     return(Ok(await _repository.GetAllCharacters()));
 }