예제 #1
0
 public void CopyTo(MenuModel menuModel)
 {
     throw new NotImplementedException();
 }
예제 #2
0
        public static MenuModel ToMenuModel(this Menu MenuData, string RestId, string lang, RestaurantModel restaurantModel = null)
        {
            if (MenuData == null) return new MenuModel() { RestaurantId = RestId };

            MenuModel returnValue = new MenuModel()
            {
                RestaurantId = RestId,
                MenuParts = ToMenuPartsModel(MenuData.MenuParts, RestId, lang, restaurantModel)
            };

            return returnValue;
        }
예제 #3
0
 //constructor
 public RestaurantModel()
 {
     Menu = new MenuModel();
     //uses on client side to deside if this is Dish entity in result list returned by seach function
     DishFlag = 0;
 }