1
0
mirror of https://github.com/bitwarden/server synced 2025-12-26 21:23:39 +00:00
Files
server/src/Api/SecretsManager/Models/Request/ProjectCreateRequestModel.cs
2025-07-08 10:25:59 -04:00

26 lines
590 B
C#

// 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,
};
}
}