1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 01:33:20 +00:00

rename foles for subvault => collection

This commit is contained in:
Kyle Spearrin
2017-04-27 09:28:23 -04:00
parent b2bebda9ed
commit 755da8c38f
20 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.ComponentModel.DataAnnotations;
using Bit.Core.Utilities;
using Bit.Core.Models.Table;
using Newtonsoft.Json;
namespace Bit.Core.Models.Api
{
public class CollectionRequestModel
{
[Required]
[EncryptedString]
[StringLength(300)]
public string Name { get; set; }
public Collection ToCollection(Guid orgId)
{
return ToCollection(new Collection
{
OrganizationId = orgId
});
}
public Collection ToCollection(Collection existingCollection)
{
existingCollection.Name = Name;
return existingCollection;
}
}
}