|
@@ -40,10 +40,10 @@ namespace WorkWithDatabase.ViewModels
|
|
|
{
|
|
|
case ButtonResult.Yes:
|
|
|
{
|
|
|
- Teacher deleteTeacher = MainWindowViewModel.myConnection.Teachers.First(x => x.IdTeacher == IdT);
|
|
|
+ /* Teacher deleteTeacher = MainWindowViewModel.myConnection.Teachers.First(x => x.IdTeacher == IdT);
|
|
|
MainWindowViewModel.myConnection.Teachers.Remove(deleteTeacher);
|
|
|
MainWindowViewModel.myConnection.SaveChanges();
|
|
|
- MainWindowViewModel.Instance.PageContent = new MainPage();
|
|
|
+ MainWindowViewModel.Instance.PageContent = new MainPage();*/
|
|
|
Messege = "Преподаватель удалён!";
|
|
|
ButtonResult result1 = await MessageBoxManager.GetMessageBoxStandard("Сообщение с уведомлением об удалении!", Messege, ButtonEnum.Ok).ShowAsync();
|
|
|
break;
|