public void SaveBranchDetails(Branch branch, bool autoCommit = true) { if (branch.BranchID == 0) { BranchRepository.Insert(branch); } else { BranchRepository.Update(branch); } if (autoCommit) { BranchRepository.Commit(); } }
public void SaveBranchDetails(Branch branch, bool autoCommit = true) { if (branch.BranchID == 0) { BranchRepository.Insert(branch); } else { BranchRepository.Update(branch); } if (autoCommit) { BranchRepository.Commit(); } }