Files
ExpenseTrackerApi/DTOs/EntryDto.cs
T
Kevin Harlay ebfaf6f5ec Initial commit
2026-09-07 13:33:22 +02:00

36 lines
684 B
C#

namespace ExpenseTracker.Api.DTOs;
public record EntryDto(
Guid Id,
Guid MonthId,
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
string? CategoryName,
DateOnly EntryDate,
DateTime CreatedAt);
public record CreateEntryDto(
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
DateOnly EntryDate);
public record UpdateEntryDto(
string Type,
decimal Amount,
string Label,
Guid? CategoryId,
DateOnly EntryDate);
public record ImportErrorDto(
int Line,
string Message);
public record ImportResultDto(
int ImportedCount,
int ErrorCount,
List<ImportErrorDto> Errors);