1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-29 07:14:50 -05:00
bitwarden/src/Admin/AdminConsole/Models/OrganizationsModel.cs
Jonas Hendrickx b096568eea
Revert "Revert [PM-6201] (#5143)" (#5144)
This reverts commit c99b4106f544920ec7496c1cc1e4dbeff6aa597e.
2025-01-08 09:26:40 +01:00

16 lines
491 B
C#

using Bit.Admin.Models;
using Bit.Core.AdminConsole.Entities;
namespace Bit.Admin.AdminConsole.Models;
public class OrganizationsModel : PagedModel<Organization>
{
public string Name { get; set; }
public string UserEmail { get; set; }
public bool? Paid { get; set; }
public string Action { get; set; }
public bool SelfHosted { get; set; }
public double StorageGB(Organization org) => org.Storage.HasValue ? Math.Round(org.Storage.Value / 1073741824D, 2) : 0;
}