/* * / * /Renderiza todos os retaurantes * /cadastrados e com pedidos * /disponíveis para o funcionário * / */ public async Task <IActionResult> Index() { try { int userlogado = (int)_httpcontext.HttpContext.Session.GetInt32(Sessao.LOGADO); List <Restaurante> restaurantes = await _funcService.FindAllRestAsync(); return(View(restaurantes)); } catch { return(View("~/Views/Login/Index.cshtml")); } }