Ejemplo n.º 1
0
        public Task RegisterAsync(IUser user)
        {
            if (user.Id == Context.User.Id)
            {
                return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, Context.User.Username));
            }

            throw new Exception("You cannot register by tagging another user");
        }
Ejemplo n.º 2
0
 public Task RegisterAsync([Remainder] string name)
 {
     return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, name));
 }
Ejemplo n.º 3
0
 public Task RegisterAsync()
 {
     return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, Context.User.Username));
 }