mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 15:01:56 +00:00
Implemented frontend Locations update buttons
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
namespace Berufsschule_HAM.Models;
|
||||
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Berufsschule_HAM.Exceptions;
|
||||
public class LocationModel
|
||||
{
|
||||
@@ -22,8 +23,11 @@ public class LocationModel
|
||||
}
|
||||
public class LocationsDescription
|
||||
{
|
||||
[JsonPropertyName("Location")]
|
||||
public string? Location { get; set; }
|
||||
[JsonPropertyName("RoomNumber")]
|
||||
public string? RoomNumber { get; set; }
|
||||
[JsonPropertyName("Seat")]
|
||||
public string? Seat { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Berufsschule_HAM.Models;
|
||||
|
||||
public class LocationsCreateRequestModel
|
||||
@@ -7,7 +9,9 @@ public class LocationsCreateRequestModel
|
||||
|
||||
public class LocationsModifyRequestModel
|
||||
{
|
||||
[JsonPropertyName("Location")]
|
||||
public required string Location { get; set; }
|
||||
[JsonPropertyName("Description")]
|
||||
public required LocationsDescription Description { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user