public static ModelLibrary.Menu GetMenu(int restaurantId) { var menuCtrl = new MenuCtrl(); var menu = menuCtrl.GetActiveMenu(restaurantId); return(menu); }
public static async Task <ModelLibrary.Menu> GetMenuAsync(int restaurantId) { var menuCtrl = new MenuCtrl(); ModelLibrary.Menu menu = null; await Task.Run(() => menu = menuCtrl.GetActiveMenu(restaurantId)); return(menu); }