public CsPostCodePrice SavePostCodeCharges(CsPostCodePrice postCodesPrices)
 {
     if (!Authenticate())
     {
         return null;
     }
     var cms = new ContentManagementServices();
     return cms.SavePostCodeCharge(postCodesPrices);
 }
 public CsPostCodePrice SavedPostCodePrice(CsPostCodePrice postCodePrice)
 {
     CsPostCodePrice savedPostCodePrice = null;
     using (var session = Provider.CreateSessionFactory().CreateSession())
     {
         var tranx = session.GetTransaction();
         savedPostCodePrice = postCodePrice.ID == 0 ? session.Insert(postCodePrice) : session.Update(postCodePrice);
         tranx.Commit();
     }
     return savedPostCodePrice;
 }
 public void DeletePostCodeCharges(CsPostCodePrice postCodesPrices)
 {
     if (!Authenticate())
     {
         return;
     }
     var cms = new ContentManagementServices();
     cms.DeletePostCodeCharge(postCodesPrices);
 }