Exemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("Id,Email,Wallet")] EmailwalletTable emailwalletTable)
        {
            if (ModelState.IsValid)
            {
                _context.Add(emailwalletTable);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(emailwalletTable));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Create([Bind("Id,Email")] Subscribers subscribers)
        {
            if (ModelState.IsValid)
            {
                _context.Add(subscribers);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(subscribers));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> Create([Bind("Id,Email,Wallet,Usertype,Amount,DonateTime")] Donations donations)
        {
            if (ModelState.IsValid)
            {
                _context.Add(donations);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(donations));
        }