예제 #1
0
        public async Task <IActionResult> GetDecks()
        {
            var identity = User.GetIdentity();
            var decks    = await _deckService.GetAllDecks(identity);

            return(Ok(decks));
        }
예제 #2
0
 public IEnumerable <Deck> GetDecks()
 {
     return(service.GetAllDecks());
 }