예제 #1
0
        public ActionResult <List <Character> > Get()
        {
            var character = _characterService.Get();

            if (character == null)
            {
                return(NotFound());
            }

            return(character);
        }
 public ActionResult <List <Character> > Get()
 {
     return(_charactersService.Get());
 }
예제 #3
0
 public ActionResult <List <Character> > Get()
 {
     // return list of all characters
     return(_charactersService.Get());
 }