private void SendDataToRelevantTill() { var productDepartmentModel = new EventManagementSystem.Models.TillDomainObjects.ProductDepartmentModel { Record = ProductDepartment.RecordID, Name = ProductDepartment.Name }; string tillName = ProductDepartment.Till.Name; string ipAddress = ProductDepartment.Till.IPAddress; TillsCommunicationService.SetProductDepartment(productDepartmentModel, tillName, ipAddress); IsBusy = false; RaisePropertyChanged("CloseDialog"); }