Пример #1
0
        public bool Add(IDishContainerDAL dal = null)
        {
            if (ExistsInDatabase(this.Name, dal))
            {
                return(false);
            }

            this.Price = (float)Math.Round(this.Price, 2);
            if (this.Price < 0)
            {
                return(false);
            }

            return(dishDAL.Add(this.Name, this.Price, this.IngredentDTOs));
        }