mirror of
https://github.com/bitwarden/server.git
synced 2026-01-31 22:23:18 +08:00
22 lines
457 B
C#
22 lines
457 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
|||
|
|
using Bit.Core.Entities;
|
|||
|
|
using Bit.Core.Utilities;
|
|||
|
|
|
|||
|
|
namespace Bit.Api.SecretManagerFeatures.Models.Request;
|
|||
|
|
|
|||
|
|
public class ProjectCreateRequestModel
|
|||
|
|
{
|
|||
|
|
[Required]
|
|||
|
|
[EncryptedString]
|
|||
|
|
public string Name { get; set; }
|
|||
|
|
|
|||
|
|
public Project ToProject(Guid organizationId)
|
|||
|
|
{
|
|||
|
|
return new Project()
|
|||
|
|
{
|
|||
|
|
OrganizationId = organizationId,
|
|||
|
|
Name = Name,
|
|||
|
|
};
|
|||
|
|
}
|
|||
|
|
}
|