示例#1
0
        public async Task <IActionResult> Index()
        {
            var model = await client.GetListAsync();

            //TODO: pridat do DB, nevolat addhoc
            foreach (var item in model)
            {
                var uzivatel = await UzivatelServis.GetAsync(item.UzivatelId);

                if (uzivatel != null)
                {
                    //item.UzivatelCeleJmeno = $"{uzivatel.Prijmeni} {uzivatel.Jmeno}";
                }
            }


            return(View(model));
        }
示例#2
0
        public async Task <IActionResult> Detail(Guid id)
        {
            var model = await client.GetAsync(id);

            return(View(model));
        }