public async Task AddStock(PortfolioRequest request) { var dbItem = _mapper.Map <PortfolioEntity>(request); dbItem.StockId = Guid.NewGuid(); dbItem.Created = DateTimeOffset.Now; await _stocksRepository.AddStockItem(dbItem); }
public async Task AddStock(PortfolioRequest request) { var dbItem = _mapper.Map <PortfolioEntity>(request); dbItem.StockId = Guid.NewGuid(); dbItem.Created = DateTimeOffset.Now; await _stocksRepository.AddStockItem(dbItem); }