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));
        }
Beispiel #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));
        }
Beispiel #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));
        }