Added endpoints to update verspakketten and add beoordeling. Added some validations and other tweaks
This commit is contained in:
12
Lutra/Lutra.API/Requests/UpdateVerspakketRequest.cs
Normal file
12
Lutra/Lutra.API/Requests/UpdateVerspakketRequest.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lutra.API.Requests;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the data required to update a verspakket.
|
||||
/// </summary>
|
||||
public sealed record UpdateVerspakketRequest(
|
||||
[Required, MaxLength(50)] string Naam,
|
||||
[Range(0, int.MaxValue)] int PrijsInCenten,
|
||||
[Range(1, 10)] int AantalPersonen,
|
||||
[Required] Guid SupermarktId);
|
||||
Reference in New Issue
Block a user