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)); }
public void Add(D.Beneficiary beneficiary) { BeneficiaryRepository.Add(beneficiary); }
private EF.Beneficiary ConvertToEFwithID(D.Beneficiary beneficiary) { return(new EF.Beneficiary(beneficiary.BeneficiaryID, beneficiary.Name, beneficiary.Description)); }
public void Delete(D.Beneficiary beneficiary) { _context.Beneficiaries.Remove(ConvertToEF(beneficiary)); _context.SaveChanges(); }
public void Add(D.Beneficiary beneficiary) { _context.Beneficiaries.Add(ConvertToEF(beneficiary)); _context.SaveChanges(); }