Files
server/src/Api/Models/Request/Organizations/OrganizationCreateRequestModel.cs

26 lines
569 B
C#
Raw Normal View History

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