Exemple #1
0
 public void CopyTo(MenuModel menuModel)
 {
     throw new NotImplementedException();
 }
        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;
        }
 //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;
 }