Added asset inventory information and action in AssetsController

This commit is contained in:
2025-10-13 17:24:25 +02:00
parent 5fb7a1021b
commit 0cc806a0a3
3 changed files with 24 additions and 7 deletions

View File

@@ -50,6 +50,8 @@ public class AssetDescription
public Dictionary<string, string>? Attributes { get; set; }
[JsonPropertyName("Purchase")]
public AssetPurchase? Purchase { get; set; }
[JsonPropertyName("Inventory")]
public AssetInventory? Inventory { get; set; }
}
public class AssetPurchase
@@ -64,6 +66,15 @@ public class AssetPurchase
public string? PurchasedBy { get; set; }
}
public class AssetInventory
{
[JsonPropertyName("Date")]
public required string Date { get; set; }
[JsonPropertyName("PersonUid")]
public required string PersonUid { get; set; }
}
public class AssetsTableViewModel
{
public string? UserUID { get; set; }

View File

@@ -28,4 +28,6 @@ public class AssetsModifyRequestModel
public string? Owner { get; set; } = null;
[JsonPropertyName("SerialNumber")]
public string? SerialNumber { get; set; } = null;
[JsonPropertyName("UpdateInventory")]
public bool UpdateInventory { get; set; } = false;
}