Upload files to 'STOContracts/BindingModels'

This commit is contained in:
Ivan_Starostin 2024-05-01 14:26:59 +04:00
parent 7da1354c95
commit dba140e772
5 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,25 @@
using STODataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.BindingModels
{
public class CarBindingModel : ICarModel
{
public int Id { get; set; }
public string CarNumber { get; set; }
public string CarBrand { get; set; } = string.Empty;
public string CarModel { get; set; } = string.Empty;
public DateTime Year { get; set; } = DateTime.MinValue;
public Dictionary<int, (ITechnicalWorkModel, int)> CarTechnicalWorks { get; set; } = new();
public int ClientId { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using STODataModels;
namespace STOContracts.BindingModels
{
public class CarPartBindingModel : ICarPartModel
{
public int Id { get; set; }
public string CarPartName { get; set; } = string.Empty;
public double Cost { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using STODataModels;
namespace STOContracts.BindingModels
{
public class ClientBindingModel : IClientModel
{
public int Id { get; set; }
public string ClientFIO { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}

View File

@ -0,0 +1,13 @@
using STODataModels;
namespace STOContracts.BindingModels
{
public class ServiceBindingModel : IServiceModel
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public int CarId { get; set; }
public int ClientId { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using STODataModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace STOContracts.BindingModels
{
public class TechnicalWorkBindingModel: ITechnicalWorkModel
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public DateTime Date { get; set; } = DateTime.MinValue;
public Dictionary<int, (IWorkModel, int)> TechnicalworkWorks { get; set; } = new();
}
}