public void UpdateCustom(SupplierVM model)
        {
            var Supplier = Find(model.SupplierID);

            Supplier.SupplierCompanyName = model.SupplierCompanyName;
            Supplier.SupplierName        = model.SupplierName;
            Supplier.SupplierAddress     = model.SupplierAddress;
            Supplier.SupplierPhone       = model.SupplierPhone;
            Supplier.SmsNumber           = model.SmsNumber;
            Update(Supplier);
        }
        public Supplier AddCustom(SupplierVM model)
        {
            var Supplier = new Supplier
            {
                SupplierCompanyName = model.SupplierCompanyName,
                SupplierName        = model.SupplierName,
                SupplierAddress     = model.SupplierAddress,
                SupplierPhone       = model.SupplierPhone,
                SmsNumber           = model.SmsNumber
            };

            Add(Supplier);
            return(Supplier);
        }