public int AddInsuranceBranchRecord(DLModel.InsurerBranch modelInsuranceBranch)
 {
     if (_insurerBranchRepository.CheckInsurerBranchExist(modelInsuranceBranch.InsurerBranchName) > 0)
     {
         return(0);
     }
     else
     {
         return(_insurerBranchRepository.Add((DLModel.InsurerBranch) new DLModel.InsurerBranch().InjectFrom(modelInsuranceBranch)).InsurerBranchId);
     }
 }
 public int UpdateInsuranceBranchRecord(DLModel.InsurerBranch modelInsuranceBranch)
 {
     return(_insurerBranchRepository.Update((DLModel.InsurerBranch) new DLModel.InsurerBranch().InjectFrom(modelInsuranceBranch)));
 }