private async Task InsertProductImages(IList <string> rowValues, long vendorProductId) { foreach (var imageConfig in _imagefileconfig) { var image = new productimage { ImagePath = rowValues[(int)imageConfig.ColumnNo], ImageType = imageConfig.ImageType, VendorProductId = vendorProductId }; await VendorsConfig.AddProductImage(image); } }
private async Task InsertProductImages(long vendorProductId, int row) { foreach (var imageConfig in _imagefileconfig) { var image = new productimage { ImagePath = Convert.ToString((_range.Cells[row, (imageConfig.ColumnNo + 1)] as Range).Value2), ImageType = imageConfig.ImageType, VendorProductId = vendorProductId }; await VendorsConfig.AddProductImage(image); } }