public string InsertOrUpdateVendor(VendorModel VM) { tbl_Vendor Vendor = new tbl_Vendor(); Vendor.VendorID = VM.VendorID; Vendor.Name1 = VM.Name1; Vendor.Address1 = VM.Address1; Vendor.Address2 = VM.Address2; Vendor.Address3 = VM.Address3; Vendor.POBox = VM.POBox; Vendor.Contact = VM.Contact; Vendor.Phone = VM.Phone; Vendor.Fax = VM.Fax; Vendor.Email = VM.Email; Vendor.City = VM.City; Vendor.Region = VM.Region; Vendor.Country = VM.Country; return(VendorBL.InsertOrUpdate(VM)); }