Esempio n. 1
0
        public async Task <CustomError> AddItem(string name)
        {
            Item i = new Item(name);

            (Item item, CustomError c) = await HolidayService.AddItem(SelectedCategory, i);

            if (item.ID >= 0 && c.Message == null)
            {
                SelectedCategory.Items.Add(item);
            }

            return(c);
        }