// Method for creating user profile at signup. public void SignUpUser(string email, string firstName, string lastName) { if (_userName != "veswap") { Roles.AddUserToRole(_userName, "PaidMembers"); } else { Roles.AddUserToRole(_userName, "Managers"); } using (SwapEntities myEnt = new SwapEntities()) { var newEntry = new ProfileProperty(); newEntry.Email = email; newEntry.UserId = _userId; newEntry.UserName = _userName; newEntry.FirstName = firstName; newEntry.LastName = lastName; myEnt.AddToProfileProperties(newEntry); myEnt.SaveChanges(); EmailUsersClass sndEmail = new EmailUsersClass("veswap"); string body = sndEmail.PopulateBody(firstName, "Thanks for signing up! Your account is active. Please " + "feel free to contact us at [email protected] with any questions or concerns. Thanks again, and happy swapping!"); sndEmail.SendHtmlFormattedEmail(email, "New message from veSwap.com customer care.", body); } }