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"); }
public Task RegisterAsync([Remainder] string name) { return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, name)); }
public Task RegisterAsync() { return(UserManagement.RegisterAsync(Context, Context.Server, Context.User, Context.User.Username)); }