ownChat Teams ohne Mitarbeiter können nicht mehr gespeichert werden
This commit is contained in:
@@ -92,7 +92,15 @@ namespace BeWo.View.Detail
|
||||
MessageBox.Show("Bitte wählen Sie ein Teamleitung aus", "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.ViewModel.IsOwnChatTeam)
|
||||
{
|
||||
var employees = ViewModel.OwnChatMember.Where(o => o.Person.PersonType == PersonType.Employee).ToList();
|
||||
if (employees.Count == 0)
|
||||
{
|
||||
MessageBox.Show(Translator.Translate("Bitte wählen Sie mindestens eine Mitarbeiterin oder einen Mitarbeiter aus"), "Speichern nicht möglich", MessageBoxButton.OK, MessageBoxImage.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
var lDC = ViewModel.CommitToDataContract();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user