public void AddNewCategory(IUserCategory category, TaskContext context) { category.Dispatcher.Invoke(() => { var categoryName = RandomUtility.NextIdentifier(); category.AddNewCategory(context.Authentication, categoryName); }); }
public void AddNewCategory() { category.AddNewCategory(authentication, RandomUtility.NextIdentifier()); }