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

            if (autoCommit)
            {
                BranchRepository.Commit();
            }
        }