예제 #1
0
        public void Edit(D.Beneficiary beneficiary)
        {
            EF.Beneficiary efBeneficiary = ConvertToEFwithID(beneficiary);


            _context.Entry(efBeneficiary).State = EntityState.Modified;
            _context.SaveChanges();
        }
 public void Edit(DM.Beneficiary beneficiary)
 {
     BeneficiaryRepository.Edit(beneficiary);
 }
        public void Add(DM.Beneficiary beneficiary)
        {
            BeneficiaryRepository.Add(beneficiary);

            AccountRepository.AddBeneficiary(AccountRepository.Get("Super"), Convert(beneficiary));
        }
예제 #4
0
 public void Add(D.Beneficiary beneficiary)
 {
     BeneficiaryRepository.Add(beneficiary);
 }
예제 #5
0
 private EF.Beneficiary ConvertToEFwithID(D.Beneficiary beneficiary)
 {
     return(new EF.Beneficiary(beneficiary.BeneficiaryID, beneficiary.Name, beneficiary.Description));
 }
예제 #6
0
 public void Delete(D.Beneficiary beneficiary)
 {
     _context.Beneficiaries.Remove(ConvertToEF(beneficiary));
     _context.SaveChanges();
 }
예제 #7
0
 public void Add(D.Beneficiary beneficiary)
 {
     _context.Beneficiaries.Add(ConvertToEF(beneficiary));
     _context.SaveChanges();
 }