mirror of
https://github.com/XFox111/MuiCharts.git
synced 2026-04-22 06:51:05 +03:00
Added ASP.NET backend with SQLite
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MuiCharts.Domain.Enums;
|
||||
|
||||
namespace MuiCharts.Contracts.Track;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response object for a track.
|
||||
/// </summary>
|
||||
public record TrackResponse(
|
||||
int FirstId,
|
||||
int SecondId,
|
||||
int Distance,
|
||||
Surface Surface,
|
||||
MaxSpeed MaxSpeed
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MuiCharts.Domain.Enums;
|
||||
|
||||
namespace MuiCharts.Contracts.Track;
|
||||
|
||||
/// <summary>
|
||||
/// 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 Distance,
|
||||
Surface Surface,
|
||||
MaxSpeed MaxSpeed
|
||||
);
|
||||
Reference in New Issue
Block a user