public StockOrder( string id, Provider provider, Storekeeper backer, IEnumerable <Article> articles, OrderReport report ) { Id = id; Provider = provider; Backer = backer; Articles = articles; Report = report; }
public void UpdateReport( OrderReportStatus?status = null, DateTime?deliveredDate = null, int?note = null, string comment = "", string photoFilePath = "" ) { Report = new OrderReport( status ?? Report.Status, Report.OrderDate, deliveredDate ?? Report.DeliveryDate, note ?? Report.Note, comment ?? Report.Comment, photoFilePath ?? Report.PhotoFilePath ); }