public void EditPeople(PeopleDTO peopleDto) { if (ValidatePeople(peopleDto)) { var people = this.database.Peoples.Get(peopleDto.Id); people.FirstName = peopleDto.FirstName; people.LastName = peopleDto.LastName; people.SecondName = peopleDto.SecondName; people.Email = peopleDto.Email; people.Phone = peopleDto.Phone; people.DateBirthday = peopleDto.DateBirthday; this.database.Peoples.Update(people); EventChanges = new EditOperation(EventChanges); EventChanges.AddOperation(); Save(); } }