public static NavigationRequest NavigateToDetails(string detailAlias, string id, IParent?parent) { return(new NavigationRequest(detailAlias) { ParentPath = parent?.GetParentPath(), Id = id, IsEdit = true }); }
public ReorderModel(string?beforeId, string id, IParent?parent) { BeforeId = beforeId; Subject = new EntityDescriptorModel { Id = id, ParentPath = parent?.GetParentPath()?.ToPathString() }; }
public static NavigationRequest NavigateToCollection(string collectionAlias, IParent?parent) { return(new NavigationRequest(collectionAlias) { ParentPath = parent?.GetParentPath(), IsEdit = true, IsList = true }); }
public static NavigationRequest NavigateToEntity(string collectionAlias, string id, IParent?parent) { return(new NavigationRequest(collectionAlias) { Id = id, ParentPath = parent?.GetParentPath(), IsEdit = true }); }
public static NavigationRequest NavigateToCreateNewEntity(string collectionAlias, IParent?parent, Type?entityVariant = null) { return(new NavigationRequest(collectionAlias) { ParentPath = parent?.GetParentPath(), IsEdit = true, IsNew = true, VariantAlias = entityVariant == null ? null : AliasHelper.GetEntityVariantAlias(entityVariant) }); }
public ParentQueryModel(IParent?parent) { ParentPath = parent?.GetParentPath()?.ToPathString(); }
public DeleteModel(IParent?parent) { ParentPath = parent?.GetParentPath()?.ToPathString(); }