public void updateThirdPartyAdministratorBranch() { ThirdPartyAdministratorBranch _ThirdPartyAdministratorBranch = new ThirdPartyAdministratorBranch { TPABranchName = "T43", TPABranchAddress = "4twt", TPABranchAddress2 = "Ttwe", TPABranchCity = "TPAwet4ty", TPABranchStateId = 1, TPABranchZip = "21311", TPAID = 2, TPABranchID = 3 }; var _id = _thirdPartyAdministratorBranchRepository.updateThirdPartyAdministratorBranch(_ThirdPartyAdministratorBranch); Assert.IsTrue(_id > 0, "failed"); }
public void addThirdPartyAdministratorBranch() { ThirdPartyAdministratorBranch _ThirdPartyAdministratorBranch = new ThirdPartyAdministratorBranch { TPABranchName = "TPswq", TPABranchAddress = "TPwewq", TPABranchAddress2 = "TPw3ewq", TPABranchCity = "dwwewsas", TPABranchStateId = 1, TPABranchZip = "21221", TPABranchPhone = "(904) 108-0635", TPABranchFax = "(904) 108-0635", TPAID = 1 }; var _id = _thirdPartyAdministratorBranchRepository.addThirdPartyAdministratorBranch(_ThirdPartyAdministratorBranch); Assert.IsTrue(_id > 0, "failed"); }
public ActionResult SaveTPABranchDetail(ThirdPartyAdministratorBranch _thirdPartyAdministratorBranch) { var message = GlobalConst.ConstantChar.StringBlank; try { if (_thirdPartyAdministratorBranch.TPABranchID != GlobalConst.ConstantChar.Zero) { int i = _iPaticipantService.updateThirdPartyAdministratorBranch(Mapper.Map <MMCService.PaticipantService.ThirdPartyAdministratorBranch>(_thirdPartyAdministratorBranch)); if (i > GlobalConst.ConstantChar.Zero) { message = GlobalConst.Message.UpdateMessage; } else { message = GlobalConst.Message.ErrorMessage; } } else { int i = _iPaticipantService.addThirdPartyAdministratorBranch(Mapper.Map <MMCService.PaticipantService.ThirdPartyAdministratorBranch>(_thirdPartyAdministratorBranch)); if (i > GlobalConst.ConstantChar.Zero) { message = GlobalConst.Message.SaveMessage; } else { message = GlobalConst.Message.ErrorMessage; } } } catch { message = GlobalConst.Message.ErrorMessage; } return(Json(message)); }
public int updateThirdPartyAdministratorBranch(ThirdPartyAdministratorBranch _thirdPartyAdministratorBranch) { return(_thirdPartyAdministratorBranchRepo.Update(_thirdPartyAdministratorBranch)); }
public int addThirdPartyAdministratorBranch(ThirdPartyAdministratorBranch _thirdPartyAdministratorBranch) { return(_thirdPartyAdministratorBranchRepo.Add(_thirdPartyAdministratorBranch).TPABranchID); }
public ActionResult GetTPABranchByID(int id) { ThirdPartyAdministratorBranch _thirdPartyAdministratorBranch = Mapper.Map <ThirdPartyAdministratorBranch>(_iPaticipantService.getThirdPartyAdministratorBranchByID(id)); return(Json(_thirdPartyAdministratorBranch)); }
public int updateThirdPartyAdministratorBranch(ThirdPartyAdministratorBranch _thirdPartyAdministratorBranch) { return(_iThirdPartyAdministratorBranchRepository.updateThirdPartyAdministratorBranch(Mapper.Map <DTO.ThirdPartyAdministratorBranch, MMC.Core.Data.Model.ThirdPartyAdministratorBranch>(_thirdPartyAdministratorBranch))); }