예제 #1
0
 public Detail_ThanhToan(MyDel sender, List <ItemsGH> listSP, string matk, Showdata rs)
 {
     InitializeComponent();
     this.Result = sender;
     Reset       = rs;
     this.ListSP = listSP;
     this.Matk   = matk;
     Showsp();
     SetView_New();
 }
예제 #2
0
        public IActionResult Show(int id)
        {
            if (ActiveUser == null)
            {
                return(RedirectToAction("Index", "User"));
            }
            Showdata showData = new Showdata
            {
                Activity = _context.Activities.Include(w => w.Players).ThenInclude(g => g.Players).Where(w => w.ActivityId == id).SingleOrDefault(),
                User     = ActiveUser,
                Users    = _context.Users.ToList(),
            };
            Activity query = _context.Activities.Include(w => w.Players).ThenInclude(g => g.Players).Where(w => w.ActivityId == id).SingleOrDefault();

            return(View(showData));
        }