public static void SaveCustomerSupportGroup(CustomerSupportGroupDto pCustomerSupportGroup) { using (Rbr_Db _db = new Rbr_Db()) { using (Transaction _tx = new Transaction(_db, pCustomerSupportGroup)) { CustomerSupportManager.SaveCustomerSupportGroup(_db, pCustomerSupportGroup); _tx.Commit(); } } }
public static void Add(CustomerAcctSupportMapDto pCustomerAcctSupportMap) { using (Rbr_Db _db = new Rbr_Db()) { using (Transaction _tx = new Transaction(_db, pCustomerAcctSupportMap)) { CustomerSupportManager.AddCustomerSupportMap(_db, pCustomerAcctSupportMap); _tx.Commit(); } } }
public static void Delete(int pVendorId) { using (Rbr_Db _db = new Rbr_Db()) { using (Transaction _tx = new Transaction(_db, pVendorId)) { CustomerSupportManager.DeleteCustomerSupportVendor(_db, pVendorId); _tx.Commit(); } } }
public static void Save(CustomerSupportVendorDto pCustomerSupportVendor) { using (Rbr_Db _db = new Rbr_Db()) { using (Transaction _tx = new Transaction(_db, pCustomerSupportVendor)) { //1. REQUIRED set Contact Info if (pCustomerSupportVendor.ContactInfo.ContactInfoId == 0) { ContactInfoManager.Add(_db, pCustomerSupportVendor.ContactInfo); } else { ContactInfoManager.Update(_db, pCustomerSupportVendor.ContactInfo); } CustomerSupportManager.SaveCustomerSupportVendor(_db, pCustomerSupportVendor); _tx.Commit(); } } }
public static CustomerSupportGroupDto[] GetByVendorId(int pVendorId) { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetByVendorIdCustomerSupportGroups(_db, pVendorId)); } }
public static CustomerSupportGroupDto Get(int pCustomerSupportGroupId) { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetCustomerSupportGroup(_db, pCustomerSupportGroupId)); } }
public static CustomerAcctSupportMapDto[] GetAllCustomerSupportMaps(int pVendorId) { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetAllCustomerAcctSupportMaps(_db, pVendorId)); } }
public static CustomerAcctSupportMapDto GetCustomerSupportMap(short pCustomerAcctId, int pVendorId) { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetCustomerAcctSupportMap(_db, pCustomerAcctId, pVendorId)); } }
public static CustomerSupportVendorDto[] GetAllCustomerSupportVendors() { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetAllCustomerSupportVendors(_db)); } }
public static CustomerSupportVendorDto GetCustomerSupportVendor(int pVendorId) { using (Rbr_Db _db = new Rbr_Db()) { return(CustomerSupportManager.GetCustomerSupportVendor(_db, pVendorId)); } }