public async Task AddStock(Stock stock) { stock.DateRegister = DateTime.Now; stock.DateUpdate = DateTime.Now; await _IStock.Add(stock); }
public async Task Add(Stock Object) { await _IStock.Add(Object); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(BaseStockTable model) { return(dal.Add(model)); }