public IActionResult Index() { List <User> users = userSqlDal.GetAllUsersByRole(); users.ForEach(user => { if (!String.IsNullOrEmpty(user.TicketLevel)) { user.Ticket = ticketSqlDal.GetTicket(user.TicketLevel); } }); return(View(users)); }
public IActionResult Index() { List <User> users = userSqlDal.GetAllUsersByRole(); return(View(users)); }