public NewMemberPage() { viewModel = new NewMemberViewModel(this); this.BindingContext = viewModel; InitializeComponent(); }
public async Task <ActionResult> WelcomeNewMemberAsync(NewMemberViewModel model) { _CheckForAdminAccess(); var context = new TravelogyDevEntities1(); var users = context.View_User.Where(p => p.Email == model.Email); if (users == null || users.Count() == 0) { await _SendWelcomeEmail(model.FirstName, model.LastName, model.Email); var _blError = await DomingoUserManager.CreateCrmLeadUserCallin(model.FirstName, model.LastName, model.Email, model.Telephone, model.Notes); } return(RedirectToAction("Index")); }