Implemented /Home/Location table and delete action

This commit is contained in:
2025-10-10 09:35:53 +02:00
parent 432a28271b
commit 1e13ea11d7
6 changed files with 67 additions and 37 deletions

View File

@@ -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; }
}

View File

@@ -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;
}

View File

@@ -0,0 +1,5 @@
namespace Berufsschule_HAM.Models;
public class LocationsIndexViewModel
{
public required IEnumerable<LocationTableViewModel> LocationTableViewModels { get; set; }
}