20 lines
568 B
C#
Raw Normal View History

2024-11-12 19:18:35 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProductionInCehOTP.Entities;
public class MaterialForProduct
{
public int ProductID { get; private set; }
2024-11-23 23:26:39 +03:00
public int MaterialID { get; private set; }
public int Count { get; private set; }
2024-11-12 19:18:35 +03:00
2024-11-23 23:26:39 +03:00
public static MaterialForProduct CreateDependenceMaterialsToProduct(int productID, int materialsId, int count)
2024-11-12 19:18:35 +03:00
{
return new MaterialForProduct { ProductID = productID, MaterialID = materialsId, Count = count };
}
}