public Matherial(string name, MatherialType type, DateTime date, int number, float pricePerOne, int manipulationId) { Id = null; Name = name; Type = type; Date = date; Number = number; PricePerOne = pricePerOne; Summ = number * pricePerOne; //Manipulation.Id = manipulationId; }
public Matherial(string name, MatherialType type, DateTime date, int number, float pricePerOne, Manipulation manipulation, Paragraph paragraph) { Id = null; Name = name; Type = type; Date = date; Number = number; PricePerOne = pricePerOne; Summ = number * pricePerOne; Manipulation = manipulation; Paragraph = paragraph; }