public async Task <IActionResult> Index()
        {
            ViewData["IsValid"] = await _lineNotify.IsValid();

            var product = await _context.Products.Take(3).ToListAsync();

            return(View(product));
        }
示例#2
0
        public async Task <IActionResult> Index()
        {
            ViewData["IsValid"] = await _lineNotify.IsValid();

            return(View());
        }