Beispiel #1
0
        public bool SaveSupplier(SupplierDto supplierDetails)
        {
            this.supplier = supplierDetails.DtoToEntity();

            if (this._supplier.Insert(this.supplier).IsNull())
            {
                return(false);
            }

            return(true);
        }
        public bool UpdateDetails(SupplierDto newDetails)
        {
            //var oldDetails = FindById(newDetails.CustomerId);
            var details = newDetails.DtoToEntity();

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


            return(true);
        }