public async Task<bool> InsertProductType(ProductTypeCommand productTypeCommand) { var shop = Mapper.Map<ProductTypeCommand, ProductType>(productTypeCommand).ToBsonDocument(); await AccessDb.Insert(shop, MongoTables.ProductTypeTableName); return true; }
public async Task<bool> Post(ProductTypeCommand productTypeCommand) { var relayResult = await _productRepository.InsertProductType(productTypeCommand); return relayResult; }