28 lines
773 B
C#
28 lines
773 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OnProfNext.Shared.Models.DTOs
|
|
{
|
|
public class BookingCreateDto
|
|
{
|
|
public int OrderId { get; set; }
|
|
[JsonIgnore]
|
|
public DateTime Date { get; set; }
|
|
|
|
[JsonPropertyName("date")]
|
|
public string DateAsString
|
|
{
|
|
get => Date.ToString("yyyy-MM-ddTHH:mm:ss");
|
|
set => Date = DateTime.Parse(value, null, System.Globalization.DateTimeStyles.AssumeLocal);
|
|
}
|
|
|
|
public decimal Hours { get; set; }
|
|
public string? Description { get; set; }
|
|
public int MandantId { get; set; } = 1;
|
|
}
|
|
}
|