Added Make and Model and Attributes to AssetDescription

This commit is contained in:
2025-10-09 09:54:40 +02:00
parent 945d848516
commit 97b97f589c
4 changed files with 42 additions and 49 deletions

View File

@@ -34,6 +34,9 @@ public class AssetModel
public class AssetDescription
{
public string? Type { get; set; }
public string? Make { get; set; }
public string? Model { get; set; }
public Dictionary<string, string>? Attributes { get; set; }
public AssetPurchase? Purchase { get; set; }
}

View File

@@ -1,9 +1,12 @@
using Microsoft.AspNetCore.Mvc;
namespace Berufsschule_HAM.Models;
public class AssetsModifyRequestModel
{
public required string Cn { get; set; }
public string? NewCn { get; set; } = null;
[FromBody]
public AssetDescription? Description { get; set; } = null;
public string? Location { get; set; } = null;
public string? Name { get; set; } = null;