public async Task<bool> Insertshop(ShopCommand shopCommand) { var shop = Mapper.Map<ShopCommand, Shop>(shopCommand).ToBsonDocument(); await AccessDb.Insert(shop,MongoTables.ShopTableName); return true; }
// POST api/values public async Task<bool> Post(ShopCommand shopCommand) { var relayResult = await _shopRepository.Insertshop(shopCommand); return relayResult; }