private async Task _validate(SpaceEntity model) { if ( !await Exists(model.Id) && !await WorkspaceExists(model.Id) ) { throw new ResourceNotFound(); } await Task.CompletedTask; }
public static void Initialization() { Settings = new Settings(); WorkEnvironment = new WorkEnvironment(); Metrics = new MetricsWriter(); Pilots = new PilotsEntity(); Infrastructure = new Infrastructure(); Space = new SpaceEntity(); InternalBrowser = new InternalBrowser(); LostAndFoundOffice = new LostSolarSystems(); }