mirror of
https://github.com/bitwarden/server
synced 2025-12-17 00:33:23 +00:00
Org API controller and supporting data access
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using Bit.Core.Domains;
|
||||
using Bit.Core.Enums;
|
||||
using System;
|
||||
|
||||
namespace Bit.Api.Models
|
||||
{
|
||||
public class OrganizationCreateRequestModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public PlanType Plan { get; set; }
|
||||
// TODO: Billing info for paid plans.
|
||||
|
||||
public virtual Organization ToOrganization(Guid userId)
|
||||
{
|
||||
var organization = new Organization
|
||||
{
|
||||
UserId = userId,
|
||||
Name = Name,
|
||||
Plan = Plan
|
||||
};
|
||||
|
||||
return organization;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user