I - BindingModels

This commit is contained in:
Sergey Kozyrev 2024-04-03 14:13:18 +04:00
parent 555b2510b2
commit c2f1286765
3 changed files with 31 additions and 3 deletions

View File

@ -4,8 +4,9 @@ namespace Contracts.BindingModels
{
public class DetailBindingModel : IDetailModel
{
int Id { get; set; }
int UserId { get; set; }
public int Id { get; set; }
public int UserId { get; set; }
public string Name { get; set; } = string.Empty;
public double Cost { get; set; }
}
}

View File

@ -0,0 +1,13 @@
using DataModels.Models;
namespace Contracts.BindingModels
{
public class ProductBindingModel : IProductModel
{
public int Id { get; set; }
public int UserId { get; set; }
public string Name { get; set; } = string.Empty;
public double Cost { get; set; }
public Dictionary<int, (IDetailModel, int)> ProductDetails { get; set; } = new();
}
}

View File

@ -0,0 +1,14 @@
using DataModels.Models;
namespace Contracts.BindingModels
{
public class ProductionBindingModel : IProductionModel
{
public int Id { get; set; }
public int UserId { get; set; }
public string Name { get; set; } = string.Empty;
public double Cost { get; set; }
public Dictionary<int, IDetailModel> ProductionDetails { get; set; } = new();
}
}