public async Task <IActionResult> ResendInvite(string id) { ApplicationUser user = await _userManager.FindByIdAsync(id); if (user == null) { return(NotFound()); } var model = new ResendInviteViewModel() { UserID = user.Id, Email = user.Email }; return(View(model)); }
public async Task <IActionResult> ResendInvite(int?id) { var merchant = await _db.Merchant .Include(t => t.User) .FirstOrDefaultAsync(m => m.Id == id); if (merchant == null) { return(NotFound()); } var model = new ResendInviteViewModel() { UserID = merchant.User.Id, Email = merchant.User.Email }; return(View(model)); }
public async Task <IActionResult> ResendInvite(int?id) { var sp = await _context.ServiceProvider .Include(t => t.User) .FirstOrDefaultAsync(m => m.Id == id); if (sp == null) { return(NotFound()); } var model = new ResendInviteViewModel() { UserID = sp.User.Id, Email = sp.User.Email }; return(View(model)); }