Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public int UpdateInsurerRecord(DLModel.Insurer modelInsurance)
 {
     return(_insurerRepository.Update((DLModel.Insurer) new DLModel.Insurer().InjectFrom(modelInsurance)));
 }