public async Task<IdentityResult> RemoveLogin(IPrincipal user, RemoveLoginModel model)
 {
     if (model.LoginProvider == LocalLoginProvider) return await UserManager.RemovePasswordAsync(user.Identity.GetUserId());
     
     return await UserManager.RemoveLoginAsync(user.Identity.GetUserId(), new UserLoginInfo(model.LoginProvider, model.ProviderKey));
 }
 public async Task<IHttpActionResult> RemoveLogin(RemoveLoginModel model)
 {
     return await RunTask(() => AccountManager.RemoveLogin(User, model));
 }