private async Task <Unit> RemoveCurrentSelectedSalesman(Salesman salesman)
        {
            // Salesman fjernes fra listen over salesmen på et distrikt
            DistrictSalesmen.Remove(salesman);

            // Finder den oprindelige salesmen, der er blevet fjernet fra listen over alle salesmen
            var originalSalesmenItem = unfilteredOrganizationSalesmen.FirstOrDefault(f => f.SalesmanId == salesman.Model.SalesmanId);

            // tilføjer den oprindelige salesmen til listen over alle salesmen igen
            FilteredOrganizationSalesmen.Add(originalSalesmenItem);

            await dataService.DeleteSecondarySalesman(salesman.Model.SalesmanId, District.Model.DistrictId);

            return(Unit.Default);
        }
        private async Task <Unit> AddSelectedFutureSalesman(SalesmenAggregateModel salesmenAggregateModel)
        {
            FilteredOrganizationSalesmen.Remove(salesmenAggregateModel);

            var model = new SalesmanModel
            {
                IsPrimary    = false,
                SalesmanId   = salesmenAggregateModel.SalesmanId,
                SalesmanName = salesmenAggregateModel.SalesmanName
            };

            DistrictSalesmen.Add(new Salesman(model));

            await dataService.InsertSecondarySalesman(salesmenAggregateModel.SalesmanId, District.Model.DistrictId);

            return(Unit.Default);
        }