public bool AddToFavorites(UserDto userDto, RecipeDto recipeDto) { var user = _mapper.Map <User>(userDto); var recipe = _mapper.Map <Recipe>(recipeDto); return(_recipesRepository.AddToFavorites(user, recipe)); }
public bool AddToFavorites(UserDto userDto, RecipeDto recipeDto) { var user = _mapper.Map <User>(userDto); var recipe = _mapper.Map <Recipe>(recipeDto); return(_recipesRepository.AddToFavorites(user, recipe)); }