コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public int UpdateInsurerRecord(DLModel.Insurer modelInsurance)
 {
     return(_insurerRepository.Update((DLModel.Insurer) new DLModel.Insurer().InjectFrom(modelInsurance)));
 }