/// <summary> /// Create a new fee processing record /// </summary> /// <param name="processFee"></param> public void CreateOrganisationFeeProces(OrganisationFeeProcessing processFee) { try { using (var db = new GenerousAPIEntities()) { db.OrganisationFeeProcessings.Add(processFee); db.SaveChanges(); } } catch (Exception ex) { //Helper.LogException(ex); } }
/// <summary> /// Update the organisation fee processing record /// </summary> /// <param name="processedFee"></param> public void UpdateOrganisationFeeProces(OrganisationFeeProcessing processedFee) { try { using (var db = new GenerousAPIEntities()) { db.Entry(processedFee).State = EntityState.Modified; db.SaveChanges(); } } catch (Exception ex) { //Helper.LogException(ex); } }