public IBranchListView GetBranchUserListView(IList <IUserRegistration> userRegistrations, IList <IBranch> branches)
        {
            var userType = GetUserDropdown.UserListItems(userRegistrations, -1);

            var branchType = GetBranchDropdownList.BranchListItems(branches, -1);

            var view = new BranchListView
            {
                BranchCollection = branches,
                BranchNames      = branchType,
                UserNames        = userType,
            };

            return(view);
        }
        /// <summary>
        /// Gets the updated branch user ListView.
        /// </summary>
        /// <param name="userRegistrations">The user registrations.</param>
        /// <param name="branches">The branches.</param>
        /// <param name="branchUserListView">The branch user ListView.</param>
        /// <param name="processingMessage">The processing message.</param>
        /// <returns></returns>
        public IBranchListView GetUpdatedBranchUserListView(IList <IUserRegistration> userRegistrations, IList <IBranch> agentOfDeductionBranches, IBranchListView branchUserListView, string processingMessage)
        {
            var userType = GetUserDropdown.UserListItems(userRegistrations, branchUserListView.UserId);

            var branchType = GetBranchDropdownList.BranchListItems(agentOfDeductionBranches, branchUserListView.BranchId);


            var view = new BranchListView
            {
                BranchNames       = branchType,
                UserNames         = userType,
                ProcessingMessage = processingMessage
            };

            return(view);
        }
        /// <summary>
        /// Gets the branch user ListView.
        /// </summary>
        /// <param name="userRegistrations">The user registrations.</param>
        /// <param name="branches">The branches.</param>
        /// <returns></returns>
        public IBranchListView GetBranchUserListView(IList <IUserRegistration> userRegistrations, IList <IBranch> branchesUsers, IList <IBranch> branches, string infoMessage, int branchId)
        {
            var userType = GetUserDropdown.UserListItems(userRegistrations, -1);

            var branchType = GetBranchDropdownList.BranchListItems(branches, -1);

            var view = new BranchListView
            {
                BranchCollection  = branchesUsers,
                BranchNames       = branchType,
                UserNames         = userType,
                ProcessingMessage = infoMessage,
                BranchId          = branchId
            };

            return(view);
        }