//public static CountryDto[] GetCountries(short pAccountId, ViewContext pContext) { // using (var _db = new Rbr_Db()) { // CustomerAcctDto _customerAcct = CustomerAcctManager.GetAcct(_db, pAccountId); // if (_customerAcct == null) { // return new CountryDto[0]; // } // return CallingPlanManager.GetCountries(_db, pAccountId, _customerAcct.ServiceDto.CallingPlanId, pContext); // } //} public static CountryDto[] GetCountries(short pAccountId, int pCallingPlanId, ViewContext pContext) { using (var _db = new Rbr_Db()) { return(CallingPlanManager.GetCountries(_db, pAccountId, pCallingPlanId, pContext)); } }
public static CountryDto[] GetCountries() { using (var _db = new Rbr_Db()) { return(CallingPlanManager.GetCountries(_db)); } }