public HttpResponseMessage AddNewDepartment(DepartmentDto department)
        {
            var repository = new DepartmentRepository();
            var result     = repository.AddNewDepartment(department);

            return(Request.CreateAddRecordResponse(result));
        }
        private void AddDepartmentAction(object parameter)
        {
            Department Department = new Department("");

            InitUpsertDepartmentWindow(Department);

            if (UpsertDepartmentWindow.DialogResult == true)
            {
                DepartmentCollection.Insert(0, Department);
                SelectedDepartment = DepartmentRepository.AddNewDepartment(Department);
            }
        }