public static NavigationRequest NavigateToDetails(string detailAlias, string id, IParent?parent)
 {
     return(new NavigationRequest(detailAlias)
     {
         ParentPath = parent?.GetParentPath(),
         Id = id,
         IsEdit = true
     });
 }
Example #2
0
 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)
     });
 }
Example #6
0
 public ParentQueryModel(IParent?parent)
 {
     ParentPath = parent?.GetParentPath()?.ToPathString();
 }
Example #7
0
 public DeleteModel(IParent?parent)
 {
     ParentPath = parent?.GetParentPath()?.ToPathString();
 }