Esempio n. 1
0
        // Add your own data access methods here.  If you wish to
        // expose your public method to a WCF service, marked them with
        // the attribute [NCPublish], and another T4 template will generate your service contract

        /// <summary>
        /// This function will insert new partner spread details in PartnerCommission table
        /// </summary>
        /// <returns></returns>
        public void AddNewPartnerSpread(PartnerCommission partComm)
        {
            try
            {
                using (var unitOfWork = new EFUnitOfWork())
                {
                    var partCommRepo =
                        new PartnerCommissionRepository(new EFRepository <PartnerCommission>(), unitOfWork);

                    partCommRepo.Add(partComm);
                    partCommRepo.Save();
                }
            }
            catch (Exception ex)
            {
                CommonErrorLogger.CommonErrorLog(ex, System.Reflection.MethodBase.GetCurrentMethod().Name);
                throw;
            }
        }
 public void Delete(PartnerCommission entity)
 {
     Repository.Delete(entity);
 }
 public void Add(PartnerCommission entity)
 {
     Repository.Add(entity);
 }