Пример #1
0
        public async Task <IActionResult> GetDeckList()
        {
            try
            {
                var list = await _deckService.Get(GetUserName());

                return(Ok(list));
            }
            catch (Exception e)
            {
                return(BadRequest(e));
            }
        }
Пример #2
0
        public ActionResult Index()
        {
            var vmDeck = _deckService.Get();

            return(View(vmDeck));
        }