public async Task <IActionResult> SearchByName(string searchName) { var recipes = await _recipeService.BrowseAsyncName(searchName); await _recipeService.GetAllRecipeAsync(); return(Json(recipes)); }