// FIXME: Update this file to be null safe and then delete the line below #nullable disable using System.ComponentModel.DataAnnotations; using Bit.Core.SecretsManager.Entities; using Bit.Core.Utilities; namespace Bit.Api.SecretsManager.Models.Request; public class ProjectCreateRequestModel { [Required] [EncryptedString] [EncryptedStringLength(1000)] public string Name { get; set; } public Project ToProject(Guid organizationId) { return new Project { OrganizationId = organizationId, Name = Name, }; } }