public static LocationControl GetInstance() { if (_instance == null) { _instance = new LocationControl(); } return(_instance); }
public static Location GetLocationObject(this string location, ServiceDbContext context = null) { if (context == null) { return(LocationControl.GetInstance().GetLocation(location)); } else { return(LocationControl.GetInstance().GetLocation(context, location)); } }
public static IList <Location> GetChildren(this Location location, bool locationIsAlreadyValidated = false) { return(LocationControl.GetInstance().GetChildren(location, locationIsAlreadyValidated)); }
public static bool IsWithin(this Location location, string within) { return(LocationControl.GetInstance().IsWithin(location.Name, within)); }