public StockRecord Create(DateTime date, double startPrice, double EndPrice) { var instance = new StockRecord { Id = Guid.NewGuid() }; instance.Update(date, startPrice, EndPrice); return(instance); }
public static StockRecord Create(DateTime date, Double startPrice, Double endPrice, String owner) { var instance = new StockRecord { Id = new Guid() }; instance.Update(date, startPrice, endPrice, owner); return(instance); }