public void UpdateCustom(VendorVM model)
        {
            var vendor = Find(model.VendorID);

            vendor.VendorCompanyName = model.VendorCompanyName;
            vendor.VendorName        = model.VendorName;
            vendor.VendorAddress     = model.VendorAddress;
            vendor.VendorPhone       = model.VendorPhone;
            vendor.SmsNumber         = model.SmsNumber;
            Update(vendor);
        }
        public Vendor AddCustom(VendorVM model)
        {
            var vendor = new Vendor
            {
                VendorCompanyName = model.VendorCompanyName,
                VendorName        = model.VendorName,
                VendorAddress     = model.VendorAddress,
                VendorPhone       = model.VendorPhone,
                SmsNumber         = model.SmsNumber
            };

            Add(vendor);
            return(vendor);
        }