public async Task <IActionResult> Index() { if (TempData["Success"] as bool? ?? false) { ViewBag.Success = TempData["Success"]; ViewBag.Message = TempData["Message"]; } var orders = await _appOrder.ListAsync(); return(View(orders)); }
public async Task <IActionResult> Index() { if (TempData["Success"] as bool? ?? false) { ViewBag.Success = TempData["Success"]; ViewBag.Message = TempData["Message"]; } var orders = await _appOrder.ListAsync(); return(View(orders)); }