Пример #1
0
        public async Task <CustomError> AddCategory(string name)
        {
            Category category = new Category(name, "");

            (Category cat, CustomError c) = await HolidayService.AddCategory(category);

            if (cat.ID >= 0 && c.Message == null)
            {
                Categories.Add(cat);
            }

            return(c);
        }