namespace zero.Spaces; public class SpaceStore : EntityStore, ISpaceStore { protected ISpaceTypeService SpaceTypes { get; private set; } public SpaceStore(IStoreContext context, ISpaceTypeService spaceTypes) : base(context) { SpaceTypes = spaceTypes; } /// public async Task Empty(string spaceType) { SpaceType type = SpaceTypes.GetByAlias(spaceType); if (type == null) { return null; } Space model = await Empty(); model.SpaceTypeAlias = type.Alias; return model; } } public interface ISpaceStore : IEntityStore { /// /// Get new instance of an entity for a specific Space type /// Task Empty(string spaceType); }