public ActionResult MenuItemMatchControl(string xmlmenuitemid)
 {
     MenuItemCandidates candidates = new MenuItemCandidates();
     var repo = new MatchedItemRepository_pp();
     var xmlmenuitem = repo.GetXmlMenuItem(xmlmenuitemid);
     if (xmlmenuitem != null)
         candidates = repo.GetMenuItemCandidates(xmlmenuitem);
     candidates.XmlMenuItem = xmlmenuitem;
     return View(candidates);
 }
        public ActionResult UpdateMenuItemsMatch(string xmlguid,string matchedGuid)
        {
            var repo = new MatchedItemRepository_pp();
            repo.UpdateMenuItemsXref(xmlguid, matchedGuid);

            var menuitem = repo.GetXmlMenuItem(xmlguid);
            menuitem.MenuItemMatch = repo.GetMenuItemWithIngredients(matchedGuid);
            return PartialView("GetMenuItemDetails", menuitem);
        }