public ActionResult GetNutritionValues(FoodName foodName) { System.Diagnostics.Debug.WriteLine(foodName.Name); var res = NutritionProvider.GetNutritionValues(foodName.Name); return(Json(res, JsonRequestBehavior.AllowGet)); }
public static Dictionary <string, string[]> GetNutritionValues(string foodName) { return(NutritionProvider.GetNutritionValues(foodName)); }