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) { } }
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); } }
public async Task <bool> AddItem([FromBody] Presentation item) { return(await _codeServices.AddItem(item)); }