mirror of https://github.com/Squidex/squidex.git
17 changed files with 164 additions and 66 deletions
@ -0,0 +1,20 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using Squidex.Infrastructure; |
|||
|
|||
namespace Squidex.Domain.Apps.Entities.Apps |
|||
{ |
|||
public static class AppExtensions |
|||
{ |
|||
public static NamedId<Guid> NamedId(this IAppEntity app) |
|||
{ |
|||
return new NamedId<Guid>(app.Id, app.Name); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,21 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using System; |
|||
using Squidex.Domain.Apps.Entities.Apps; |
|||
using Squidex.Infrastructure; |
|||
|
|||
namespace Squidex.Domain.Apps.Entities |
|||
{ |
|||
public static class EntityExtensions |
|||
{ |
|||
public static NamedId<Guid> NamedId(this IAppEntity entity) |
|||
{ |
|||
return new NamedId<Guid>(entity.Id, entity.Name); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue