//================================================================================================== public ActionResult ChooseRestToCopyFrom() { log.InfoFormat("[RestaurantsController.ChooseRestToCopyFrom]."); MenuCopyModel MenuCopy = new Models.MenuCopyModel(); MenuCopy.RestaurantsList = m_serviceLayer.GetAllRestaurants(); return View(MenuCopy); }
public ActionResult ChooseRestToCopyTo(string CopyFromId) { log.InfoFormat("[RestaurantsController.ChooseRestToCopyTo] CopyFromId={0}.", CopyFromId); MenuCopyModel MenuCopy = new Models.MenuCopyModel() { CopyFromId = CopyFromId }; MenuCopy.RestaurantsList = m_serviceLayer.GetAllRestaurants(); MenuCopy.RestaurantsList.RemoveAll(mp => mp.Id == MenuCopy.CopyFromId); return View(MenuCopy); }
public ActionResult MenusCopy(string CopyFromId, string CopyToId) { log.InfoFormat("[RestaurantsController.MenusCopy] CopyFromId={0}, CopyToId={1}.", CopyFromId, CopyToId); MenuCopyModel MenuCopy = new Models.MenuCopyModel() { CopyFromId = CopyFromId, CopyToId = CopyToId }; MenuCopy.StringRestaurantsList.Add(m_serviceLayer.GetRestaurantBasicById(CopyFromId).ToRestaurantListEntity()); MenuCopy.StringRestaurantsList.Add(m_serviceLayer.GetRestaurantBasicById(CopyToId).ToRestaurantListEntity()); return View(MenuCopy); }