public ModelLibrary.Menu GetActiveMenu(int restaurantId) { var menuDb = new MenuDb(); var itemCtrl = new ItemCtrl(); var menu = ConvertMenuToModel(menuDb.GetActiveMenu(restaurantId)); menu.Items = itemCtrl.GetMenuItems(menu.Id); return(menu); }
public ModelLibrary.Menu GetActiveMenu(int restaurantId) { var menuDb = new MenuDb(); var itemCtrl = new ItemCtrl(); var menu = ConvertMenuToModel(menuDb.GetActiveMenu(restaurantId)); menu.Items = itemCtrl.GetMenuItems(menu.Id); return(menu); }