protected void DestroyServices(IAPIEntityService service) { if (service is IAPIController) { var apiCon = service as IAPIController; apiCon.OnDestroy(this); } }
protected async Task DestroyServices(IAPIEntityService service) { if (service is IAPIController) { var apiCon = service as IAPIController; await apiCon.OnDestroy(this); } }