Вроде модели закончил
This commit is contained in:
parent
9373ecbada
commit
c3370cd015
@ -21,7 +21,7 @@ public class ProductDataModel(string id, string productName, ProductType product
|
||||
public double Price { get; private set; } = price;
|
||||
|
||||
public bool IsDeleted { get; private set; } = isDeleted;
|
||||
public List<ProductIngridientDataModel> Ingredients { get; private set; } = ingredients;-
|
||||
public List<ProductIngridientDataModel> Ingredients { get; private set; } = ingredients;
|
||||
|
||||
public void Validate()
|
||||
{
|
||||
|
@ -10,9 +10,10 @@ using SweetBunsContracts.Exceptions;
|
||||
|
||||
namespace SweetBunsContracts.DataModels;
|
||||
|
||||
public class ProductIngridientDataModel(string ingredientId, string productId) : IValidation
|
||||
public class ProductIngridientDataModel(string ingredientId,int amountOfIngredients, string productId) : IValidation
|
||||
{
|
||||
public string IngredientId { get; private set; } = ingredientId;
|
||||
public int AmountOfIngredients { get; private set; } = amountOfIngredients;
|
||||
|
||||
public string ProductId { get; private set; } = productId;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user