static ResellAcctRow mapToResellAcctRow(ResellAccountDto pResellAccount) { var _resellAcctRow = new ResellAcctRow { Resell_acct_id = pResellAccount.ResellAccountId, Customer_acct_id = pResellAccount.CustomerAcctId, Partner_id = pResellAccount.PartnerId, Person_id = pResellAccount.PersonId, CommisionType = pResellAccount.CommisionType, Fee_per_call = pResellAccount.FeePerCall, Fee_per_minute = pResellAccount.FeePerMinute, Markup_dollar = pResellAccount.MarkupDollar, Markup_percent = pResellAccount.MarkupPercent, PerRoute = pResellAccount.PerRoute }; return(_resellAcctRow); }
internal static void UpdateResellAccount(Rbr_Db pDb, ResellAccountDto pResellAccount) { var _resellAcctRow = mapToResellAcctRow(pResellAccount); pDb.ResellAcctCollection.Update(_resellAcctRow); }
internal static void AddResellAccount(Rbr_Db pDb, ResellAccountDto pResellAccount) { var _resellAcctRow = mapToResellAcctRow(pResellAccount); pDb.ResellAcctCollection.Insert(_resellAcctRow); }