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