Ejemplo n.º 1
0
        public async void LoadPresentations()
        {
            try
            {
                var presentations = await _contentProvider.GetAllContent(_presentationServices.Path, _presentationServices.Pattern);

                foreach (var presentation in presentations)
                {
                    await _presentationServices.AddItem(presentation);
                }
            }
            catch (Exception)
            {
            }
        }
Ejemplo n.º 2
0
        private async void LoadPresentations()
        {
            try
            {
                var presentations = await _contentProvider.GetAllContent(_presentationServices.Path, _presentationServices.Pattern);

                foreach (var presentation in presentations)
                {
                    await _presentationServices.AddItem(presentation);
                }
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
            }
        }
Ejemplo n.º 3
0
 public async Task <bool> AddItem([FromBody] Presentation item)
 {
     return(await _codeServices.AddItem(item));
 }