aboutsummaryrefslogtreecommitdiffstats
path: root/code/api/src/Models/Database/BaseWithOwner.cs
diff options
context:
space:
mode:
authorivar <i@oiee.no>2023-10-08 01:22:29 +0200
committerivar <i@oiee.no>2023-10-08 01:22:29 +0200
commit0fa8060856fde1ac887d1fefe3940ac494d236cb (patch)
treea25262a14538b58d431afd21a2d47a4abed326ee /code/api/src/Models/Database/BaseWithOwner.cs
parentcf546fd4b9a1fbf77bccf5f0b713e688d29a66ad (diff)
downloadgreatoffice-0fa8060856fde1ac887d1fefe3940ac494d236cb.tar.xz
greatoffice-0fa8060856fde1ac887d1fefe3940ac494d236cb.zip
.
Diffstat (limited to 'code/api/src/Models/Database/BaseWithOwner.cs')
-rw-r--r--code/api/src/Models/Database/BaseWithOwner.cs54
1 files changed, 27 insertions, 27 deletions
diff --git a/code/api/src/Models/Database/BaseWithOwner.cs b/code/api/src/Models/Database/BaseWithOwner.cs
index 7e9f6c1..ebb331a 100644
--- a/code/api/src/Models/Database/BaseWithOwner.cs
+++ b/code/api/src/Models/Database/BaseWithOwner.cs
@@ -5,36 +5,36 @@ namespace IOL.GreatOffice.Api.Data.Database;
/// </summary>
public abstract class BaseWithOwner : Base
{
- protected BaseWithOwner() { }
+ protected BaseWithOwner() { }
- protected BaseWithOwner(Guid createdBy) {
- CreatedBy = createdBy;
- }
+ protected BaseWithOwner(Guid createdBy) {
+ CreatedBy = createdBy;
+ }
- protected BaseWithOwner(LoggedInUserModel loggedInUser) {
- CreatedBy = loggedInUser.Id;
- }
+ protected BaseWithOwner(LoggedInUserModel loggedInUser) {
+ CreatedBy = loggedInUser.Id;
+ }
- public Guid? UserId { get; private set; }
- public Guid? TenantId { get; private set; }
- public Guid? ModifiedBy { get; private set; }
- public Guid? CreatedBy { get; private set; }
- public Guid? DeletedBy { get; private set; }
- public User OwningUser { get; set; }
- public Tenant OwningTenant { get; set; }
+ public Guid? UserId { get; private set; }
+ public Guid? TenantId { get; private set; }
+ public Guid? ModifiedBy { get; private set; }
+ public Guid? CreatedBy { get; private set; }
+ public Guid? DeletedBy { get; private set; }
+ public User OwningUser { get; set; }
+ public Tenant OwningTenant { get; set; }
- public void SetDeleted(Guid userId) {
- DeletedBy = userId;
- base.SetDeleted();
- }
+ public void SetDeleted(Guid userId) {
+ DeletedBy = userId;
+ base.SetDeleted();
+ }
- public void SetModified(Guid userId) {
- ModifiedBy = userId;
- base.SetModified();
- }
+ public void SetModified(Guid userId) {
+ ModifiedBy = userId;
+ base.SetModified();
+ }
- public void SetOwnerIds(Guid userId = default, Guid tenantId = default) {
- if (tenantId != default) TenantId = tenantId;
- if (userId != default) UserId = userId;
- }
-} \ No newline at end of file
+ public void SetOwnerIds(Guid userId = default, Guid tenantId = default) {
+ if (tenantId != default) TenantId = tenantId;
+ if (userId != default) UserId = userId;
+ }
+}