private void UpdateStudent() { _studentService.AddOrUpdate(StudentData); var vm = new NotifyShowViewModel() { Caption = "Sửa thành công!", Content = $"Đã sửa phẩn tử ID: {StudentData.Id} trong danh sách." }; INotification notification = _CustomtNotificationService.CreateCustomNotification(vm); notification.ShowAsync(); }
private void DeleteStudent(Student student) { _studentService.Remove(student); PersonList = _studentService.FindAll(); //INotification notification = DefaultNotificationService.CreatePredefinedNotification("Remove thành Công", // "aloso", String.Format("Second line. Time: {0}", DateTime.Now), null); //notification.ShowAsync(); var vm = new NotifyShowViewModel() { Caption = "Xoá thành công!", Content = $"Đã xoá phẩn tử {student.Name} khỏi danh sách." }; INotification notification = _CustomtNotificationService.CreateCustomNotification(vm); notification.ShowAsync(); }