Example #1
0
 /// <summary>
 /// Create a new fee processing record
 /// </summary>
 /// <param name="processFee"></param>
 public void CreateOrganisationPromoFees(OrganisationPromoFee promoFees)
 {
     try
     {
         using (var db = new GenerousAPIEntities())
         {
             db.OrganisationPromoFees.Add(promoFees);
             db.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         //Helper.LogException(ex);
     }
 }
Example #2
0
 /// <summary>
 /// Update the organisation fee processing record
 /// </summary>
 /// <param name="processedFee"></param>
 public void UpdateOrganisationFeePromoPrices(OrganisationPromoFee promoFees)
 {
     try
     {
         using (var db = new GenerousAPIEntities())
         {
             db.Entry(promoFees).State = EntityState.Modified;
             db.SaveChanges();
         }
     }
     catch (Exception ex)
     {
         //Helper.LogException(ex);
     }
 }