заготовки реализаций

This commit is contained in:
2025-02-26 16:00:50 +04:00
parent af9e774126
commit 46f94f62b9
11 changed files with 289 additions and 50 deletions

View File

@@ -7,12 +7,10 @@ using System.Text.RegularExpressions;
namespace SmallSoftwareContracts.DataModels;
public class RequestDataModel(string id, string workerId, string email, double sum,
bool isCancel, List<InstallationRequestDataModel> softwares) : IValidation
public class RequestDataModel(string id, string workerId, string email, double sum, bool isCancel, List<InstallationRequestDataModel> softwares) : IValidation
{
public string Id { get; private set; } = id;
public string WorkerId { get; private set; } = workerId;
public DateTime RequestDate { get; private set; } = DateTime.UtcNow;
public string Email { get; private set; } = email;
public double Sum { get; private set; } = sum;
public bool IsCancel { get; private set; } = isCancel;