protected async override void AddNewModelItem(TestGroupDto model) { IsBusy = Visibility.Visible; model.ModifiedBy = DIContainer.Resolve <UserRepository>().UserName; model.ModifiedDate = DateTime.Now; var response = await testService.AddNewTestGroup(model); IsBusy = Visibility.Hidden; if (response != null && response.Acknowledgement != null) { if (response.Acknowledgement.Status.Equals(ResponseStatusCode.success.ToString())) { GetModelItems(); } else { MessageBox.Show("Failed in creating new test group", "Error"); SelectedModel = oldSelectedModel; } } }