1
0
mirror of https://github.com/XFox111/MuiCharts.git synced 2026-04-22 06:51:05 +03:00

- Added /Import endpoints

- Minor refactoring and improved validation
This commit is contained in:
2024-02-23 13:04:06 +00:00
parent 465b3ac01a
commit c27fce37c6
7 changed files with 155 additions and 30 deletions
@@ -7,8 +7,8 @@ namespace MuiCharts.Contracts.Track;
/// Represents a request to upsert a track.
/// </summary>
public record UpsertTrackRequest(
[Range(0, int.MaxValue)] int FirstId,
[Range(0, int.MaxValue)] int SecondId,
[Range(1, int.MaxValue)] int FirstId,
[Range(1, int.MaxValue)] int SecondId,
[Range(1, int.MaxValue)] int Distance,
Surface Surface,
MaxSpeed MaxSpeed