public int AddInsurerRecord(DLModel.Insurer modelInsurance) { if (_insurerRepository.CheckInsurerExist(modelInsurance.InsurerName) > 0) { return(0); } else { return(_insurerRepository.Add((DLModel.Insurer) new DLModel.Insurer().InjectFrom(modelInsurance)).InsurerId); } }
public int UpdateInsurerRecord(DLModel.Insurer modelInsurance) { return(_insurerRepository.Update((DLModel.Insurer) new DLModel.Insurer().InjectFrom(modelInsurance))); }