Upload files to 'STOContracts/BindingModels'
This commit is contained in:
parent
7da1354c95
commit
dba140e772
25
STOContracts/BindingModels/CarBindingModel.cs
Normal file
25
STOContracts/BindingModels/CarBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
11
STOContracts/BindingModels/CarPartBindingModel.cs
Normal file
11
STOContracts/BindingModels/CarPartBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
13
STOContracts/BindingModels/ClientBindingModel.cs
Normal file
13
STOContracts/BindingModels/ClientBindingModel.cs
Normal 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;
|
||||
|
||||
}
|
||||
}
|
13
STOContracts/BindingModels/ServiceBindingModel.cs
Normal file
13
STOContracts/BindingModels/ServiceBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
|
18
STOContracts/BindingModels/TechnicalWorkBindingModel.cs
Normal file
18
STOContracts/BindingModels/TechnicalWorkBindingModel.cs
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user