//Package Benefits public void AddPackageBenefit(List <BenefitView> model, int packID) { using (var prepo = new PackageBenefitRepository()) { List <BenefitView> m = new List <BenefitView>(); m = model; var ben = new PackageBenefit(); { foreach (var x in m) { //if (prepo.GetAll().Where(q => q.benefitID == x.benefitID && q.packageID == packID) == null) //{ if (x.isBenefitSelected == true) { ben.benefitID = x.benefitID; ben.packageID = packID; prepo.Insert(ben); } //} } }; } }
public void Update(PackageBenefit model) { _loRepository.Update(model); }
public void Delete(PackageBenefit model) { _loRepository.Delete(model); }
public void Insert(PackageBenefit model) { _loRepository.Insert(model); }