public static void Save(IContactLoader loader, IEnumerable <Contact> contacts) { if (loader == null) { throw new Exception("Missing contact loader from platform."); } loader.Save(contacts); }
public static IEnumerable <Contact> Load(IContactLoader loader) { if (loader == null) { throw new Exception("Missing quote loader from platform."); } return(loader.Load()); }
public static IEnumerable <Contact> Load(IContactLoader loader) { loader = DependencyService.Get <IContactLoader>(); if (loader == null) { throw new Exception("Missing contact loader from platform."); } return(loader.Load()); }
public static void Save(IEnumerable <Contact> quotes) { IContactLoader loader = DependencyService.Get <IContactLoader>(); if (loader == null) { throw new Exception("Missing contact loader from platform."); } loader.Save(quotes); }