/// <summary> /// Creates a <see cref="Stock"/> entity for insertion from a <see cref="StockData"/> object /// </summary> /// <param name="stockData"></param> /// <returns></returns> private static Stock CreateStock(StockData stockData) { var stock = stockData.ToStockEntity(); stock.Created = DateTime.Now; stock.Modified = DateTime.Now; return(stock); }