コード例 #1
0
        public async Task <IActionResult> IndexAsync(string listaId)
        {
            var lista = await _listaRepository.GetListaByIdAndAtivoAsync(listaId, _userManager.GetUserId(User));

            if (lista == null)
            {
                return(RedirectToAction("Index", "Lista", new { area = "Painel" }));
            }

            return(View(lista));
        }