// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using Squidex.Domain.Apps.Entities.Apps.Commands;
using Squidex.Infrastructure.Reflection;
namespace Squidex.Areas.Api.Controllers.Apps.Models
{
public sealed class AssignAppContributorDto
{
///
/// The id or email of the user to add to the app.
///
[Required]
public string ContributorId { get; set; }
///
/// The role of the contributor.
///
public string Role { get; set; }
public AssignContributor ToCommand()
{
return SimpleMapper.Map(this, new AssignContributor());
}
}
}