Unable to access CreateAsync in User Manager

后端 未结 3 1104
情话喂你
情话喂你 2020-12-17 02:53

I\'m trying to use the new Asp.Net Identity system. I\'ve searched this in asp.net site and able to find a tutorial here.

I\'ve created Register

3条回答
  •  情歌与酒
    2020-12-17 03:51

    So, at the beginning just declared a property as

     public UserManager UserManager { get{return _userManager;} private set{} }
    

    And

      private AppUserManager _userManager 
    {
      get { return HttpContext.GetOwinContext().GetUserManager();}
    }
    

提交回复
热议问题