|
|
@ -12,7 +12,7 @@ using Squidex.Infrastructure.Reflection; |
|
|
|
|
|
|
|
|
namespace Squidex.Areas.Api.Controllers.Schemas.Models |
|
|
namespace Squidex.Areas.Api.Controllers.Schemas.Models |
|
|
{ |
|
|
{ |
|
|
public abstract class UpsertDto |
|
|
public abstract class UpsertSchemaDto |
|
|
{ |
|
|
{ |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// The optional properties.
|
|
|
/// The optional properties.
|
|
|
@ -44,7 +44,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
public bool IsPublished { get; set; } |
|
|
public bool IsPublished { get; set; } |
|
|
|
|
|
|
|
|
public static TCommand ToCommand<TCommand, TDto>(TDto dto, TCommand command) where TCommand : UpsertCommand where TDto : UpsertDto |
|
|
public static TCommand ToCommand<TCommand, TDto>(TDto dto, TCommand command) where TCommand : UpsertCommand where TDto : UpsertSchemaDto |
|
|
{ |
|
|
{ |
|
|
SimpleMapper.Map(dto, command); |
|
|
SimpleMapper.Map(dto, command); |
|
|
|
|
|
|