public bool Create(ApiSupplier apiSupplier)
        {
            ISupplierManager SupplierManager = UnityResolver.Resolve <ISupplierManager>();
            Supplier         supplier        = new Supplier
            {
                ID         = apiSupplier.ID,
                name       = apiSupplier.name,
                address    = apiSupplier.address,
                company    = apiSupplier.company,
                telephone  = apiSupplier.telephone,
                CustomerID = apiSupplier.CustomerID
            };

            return(SupplierManager.RecoredSupplier(supplier));
        }
        public bool Create(ApiSupplier apiSupplier)
        {
            // string id = User.Identity.Name;
            ISupplierManager SupplierManager = UnityResolver.Resolve <ISupplierManager>();
            Supplier         supplier        = new Supplier
            {
                ID         = apiSupplier.ID,
                name       = apiSupplier.name,
                address    = apiSupplier.address,
                company    = apiSupplier.company,
                telephone  = apiSupplier.telephone,
                CustomerID = Helper.getCustID()
            };

            return(SupplierManager.RecoredSupplier(supplier));
        }