public void AddOrUpdateShoppingList(ShoppingListViewModel recipe) { var recipeModel = _mapper.Map <ShoppingList>(recipe); _shoppingListRepository.AddOrUpdateShoppingList(recipeModel); _shoppingListRepository.Save(); }
public void AddOrUpdateShoppingList(ShoppingListViewModel recipe) { var recipeModel = _mapper.Map <ShoppingList>(recipe); _shoppingListRepository.AddOrUpdateShoppingList(recipeModel); _shoppingListRepository.Save(); }