Классы с данными #2
@ -0,0 +1,19 @@
|
||||
using CarCenterDataModels.Enums;
|
||||
using CarCenterDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CarCenterContracts.BindingModels
|
||||
{
|
||||
public class BundlingBindingModel : IBundlingModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public EquipmentPackage EquipmentPackage { get; set; }
|
||||
public TirePackage TirePackage { get; set; }
|
||||
public ToolKit ToolKit { get; set; }
|
||||
public double Price { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
using CarCenterDataModels.Enums;
|
||||
using CarCenterDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CarCenterContracts.BindingModels
|
||||
{
|
||||
public class CarBindingModel : ICarModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public CarBrand CarBrand { get; set; }
|
||||
public string Model { get; set; } = string.Empty;
|
||||
public CarClass CarClass { get; set; }
|
||||
public int Year { get; set; }
|
||||
public double Price { get; set; }
|
||||
public int VINnumber { get; set; }
|
||||
public Dictionary<int, IBundlingModel> CarBundlings { get; set; } = new();
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CarCenterDataModels.Enums;
|
||||
using CarCenterDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CarCenterContracts.BindingModels
|
||||
{
|
||||
public class FeatureBindingModel : IFeatureModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public HelpDevices HelpDevice { get; set; }
|
||||
public string CabinColor { get; set; } = string.Empty;
|
||||
public DriveTypes DriveType { get; set; }
|
||||
public double Price { get; set; }
|
||||
public int CarID { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using CarCenterDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CarCenterContracts.BindingModels
|
||||
{
|
||||
public class StorekeeperBindingModel : IStorekeeperModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Surname { get; set; } = string.Empty;
|
||||
public string? Patronymic { get; set; }
|
||||
public string Password { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public long PhoneNumber { get; set; }
|
||||
}
|
||||
}
|
@ -7,7 +7,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="BindingModels\" />
|
||||
<Folder Include="ViewModels\" />
|
||||
<Folder Include="SearchModels\" />
|
||||
<Folder Include="BusinessLogicsContracts\" />
|
||||
|
@ -13,7 +13,7 @@ namespace CarCenterDataModels.Models
|
||||
string? Patronymic { get; }
|
||||
string Password { get; }
|
||||
string Email { get; }
|
||||
int PhoneNumber { get; }
|
||||
long PhoneNumber { get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user