mirror of https://github.com/abpframework/eventhub
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
690 B
19 lines
690 B
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace EventHub.Organizations
|
|
{
|
|
public class CreateOrganizationDto
|
|
{
|
|
[Required]
|
|
[StringLength(OrganizationConsts.MaxNameLength, MinimumLength = OrganizationConsts.MinNameLength)]
|
|
public string Name { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(OrganizationConsts.MaxDisplayNameLength, MinimumLength = OrganizationConsts.MinDisplayNameLength)]
|
|
public string DisplayName { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(OrganizationConsts.MaxDescriptionNameLength, MinimumLength = OrganizationConsts.MinDescriptionNameLength)]
|
|
public string Description { get; set; }
|
|
}
|
|
}
|
|
|