Ejemplo n.º 1
0
 public void InsertPlan(string productName, int PlanSequence, int year, decimal price, string planName, string currencyName, string currencySymbol, Nullable <Guid> subPlanID, Nullable <Guid> planID, string displayName, bool selling)
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var dalPlan = new ResellerClub.DataAccess.Plan(ConnectionFactory.GetConnection());
         dalPlan.InsertPlan(productName, PlanSequence, year, price, planName, currencyName, currencySymbol, subPlanID, planID, displayName, selling);
     }
 }
Ejemplo n.º 2
0
 public List <IPlanMessage> GetPlans()
 {
     using (var connection = ConnectionFactory.GetConnection())
     {
         var dalPlan = new ResellerClub.DataAccess.Plan(ConnectionFactory.GetConnection());
         return(dalPlan.GetPlans());
     }
 }