I - BindingModels
This commit is contained in:
parent
555b2510b2
commit
c2f1286765
@ -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; }
|
||||
}
|
||||
}
|
||||
|
13
Course/Contracts/BindingModels/ProductBindingModel.cs
Normal file
13
Course/Contracts/BindingModels/ProductBindingModel.cs
Normal 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();
|
||||
}
|
||||
}
|
14
Course/Contracts/BindingModels/ProductionBindingModel.cs
Normal file
14
Course/Contracts/BindingModels/ProductionBindingModel.cs
Normal 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();
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user