public async Task<bool> InsertProduct(ProductCommand productCommand) { var shop = Mapper.Map<ProductCommand, Product>(productCommand); await AccessDb.Insert(shop, MongoTables.ProductTableName); return true; }
// POST api/values public async Task<bool> Post(ProductCommand productCommand) { var relayResult = await _productRepository.InsertProduct(productCommand); return relayResult; }