1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-10 04:14:41 -05:00

move all models into core

This commit is contained in:
Kyle Spearrin
2017-03-08 21:55:08 -05:00
parent bd0c960e9f
commit 8bcd4e0463
60 changed files with 64 additions and 64 deletions

View File

@ -1,25 +0,0 @@
using Bit.Core.Models.Table;
using Bit.Core.Enums;
using Bit.Core.Models.Business;
using System;
namespace Bit.Api.Models
{
public class OrganizationCreateRequestModel
{
public string Name { get; set; }
public PlanType PlanType { get; set; }
public string Key { get; set; }
public virtual OrganizationSignup ToOrganizationSignup(User user)
{
return new OrganizationSignup
{
Owner = user,
OwnerKey = Key,
Name = Name,
Plan = PlanType
};
}
}
}

View File

@ -1,15 +0,0 @@
using Bit.Core.Models.Table;
namespace Bit.Api.Models
{
public class OrganizationUpdateRequestModel
{
public string Name { get; set; }
public virtual Organization ToOrganization(Organization existingOrganization)
{
existingOrganization.Name = Name;
return existingOrganization;
}
}
}

View File

@ -1,19 +0,0 @@
using Bit.Core.Models.Table;
namespace Bit.Api.Models
{
public class OrganizationUserInviteRequestModel
{
public string Email { get; set; }
}
public class OrganizationUserAcceptRequestModel
{
public string Token { get; set; }
}
public class OrganizationUserConfirmRequestModel
{
public string Key { get; set; }
}
}