mirror of
https://github.com/LD-Reborn/Berufsschule_HAM.git
synced 2025-12-20 06:51:55 +00:00
Implemented /Home/Location table and delete action
This commit is contained in:
@@ -25,4 +25,12 @@ public class LocationsDescription
|
||||
public string? Location { get; set; }
|
||||
public string? RoomNumber { get; set; }
|
||||
public string? Seat { get; set; }
|
||||
}
|
||||
|
||||
public class LocationTableViewModel
|
||||
{
|
||||
public required string LocationID { get; set; }
|
||||
public required string LocationName { get; set; }
|
||||
public required string RoomNumber { get; set; }
|
||||
public required string Seat { get; set; }
|
||||
}
|
||||
@@ -9,4 +9,11 @@ public class LocationsModifyRequestModel
|
||||
{
|
||||
public required string Location { get; set; }
|
||||
public required LocationsDescription Description { get; set; }
|
||||
}
|
||||
|
||||
public class LocationsDeleteRequestModel(bool successful, string exception = "None")
|
||||
{
|
||||
public bool Success { get; set; } = successful;
|
||||
|
||||
public string? Exception { get; set; } = exception;
|
||||
}
|
||||
5
src/Models/LocationsViewModels.cs
Normal file
5
src/Models/LocationsViewModels.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace Berufsschule_HAM.Models;
|
||||
public class LocationsIndexViewModel
|
||||
{
|
||||
public required IEnumerable<LocationTableViewModel> LocationTableViewModels { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user