I assume that you have already created a custom membership provider. You can simply add this method and then use it in your application. Say you have a custom membership provider, such as pseudo (simplified) code:
public class CustomMP : MembershipProvider
{
var db =
public void CreateUser(string username, UserInfo userInfo, )
{
MyUser newUser = new MyUser();
db.AppUsers.Add(newUser);
db.SaveChanges();
}
}
( .)
public ActionResult CreateMyUser(SomeModel model)
{
if (ModelState.IsValid)
{
CustomMP cmp = new CustomMP();
cmp.CreateUser(model.username, model.userInfo, );
FormsAuthentication.SetAuthCookie(model.username, false
- , , . , , .