/**
  * Delete the existing method before adding the updated method
  * Todo: fix this after refactor
  * @param Request $request
  * @return array
  */
 public function updateRecipeMethod(Request $request)
 {
     $recipe = Recipe::find($request->get('recipe_id'));
     $steps = $request->get('steps');
     RecipeMethod::deleteRecipeMethod($recipe);
     RecipeMethod::insertRecipeMethod($recipe, $steps);
     return Recipe::getRecipeInfo($recipe);
 }