Compare commits

..

3 Commits

6 changed files with 82 additions and 2 deletions

View File

@ -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; }
}
}

View File

@ -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();
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -7,7 +7,6 @@
</PropertyGroup>
<ItemGroup>
<Folder Include="BindingModels\" />
<Folder Include="ViewModels\" />
<Folder Include="SearchModels\" />
<Folder Include="BusinessLogicsContracts\" />

View File

@ -13,7 +13,7 @@ namespace CarCenterDataModels.Models
string? Patronymic { get; }
string Password { get; }
string Email { get; }
int PhoneNumber { get; }
long PhoneNumber { get; }
}
}