Exemple #1
0
        public static async Task <IUserCategory> GenerateUserCategoryAsync(this IUserCategory userCategory, Authentication authentication)
        {
            var name = await userCategory.GenerateNewCategoryNameAsync();

            return(await userCategory.AddNewCategoryAsync(authentication, name));
        }
 public async Task AddNewCategoryAsync(IUserCategory category, TaskContext context)
 {
     var authentication = context.Authentication;
     var categoryName   = RandomUtility.NextIdentifier();
     await category.AddNewCategoryAsync(authentication, categoryName);
 }