public PersistenceResult DeleteSpace(int spaceID) { var s = SpacesStore.GetById(spaceID, new string[] { "Parking" }); if (s == null) return new PersistenceResult() { State = ResultStates.Error, Message = $"Space with ID {spaceID} not found!" }; return DeleteSpace(s); }
public Space GetSpace(int spaceID) { return SpacesStore.GetById(spaceID, new string[] { "Parking" }); }