Пример #1
0
        public bool SaveDetails(CategoryDto newDetails)
        {
            this.category = newDetails.DtoToEntity();

            if (this._category.Insert(this.category).IsNull())
            {
                return(false);
            }

            return(true);
        }
Пример #2
0
        public bool UpdateDetails(CategoryDto newDetails)
        {
            //var oldDetails = FindById(newDetails.CustomerId);
            var details = newDetails.DtoToEntity();

            if (_category.Update2(details).IsNull())
            {
                return(false);
            }


            return(true);
        }