/// <summary> /// Adds tab to collection by current type. /// </summary> /// <typeparam name="T">Type of tab view model.</typeparam> /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> protected async Task AddRelatedPage <T>() where T : PageViewModel { var viewModel = await Core.GetInstanceAsync <T>(); RelatedPages.Add(viewModel); }
public void Remove(RelatedPages key) { _context.Remove(key); _context.SaveChanges(); }
public void Update(RelatedPages page) { _context.Update(page); _context.SaveChanges(); }
public void Add(RelatedPages page) { _context.Add(page); _context.SaveChanges(); }