//создание исполнителя
        public Performer CreatePerformer(string firstName, string lastName, string patronymicName)
        {
            var performerRepository = RepositoryFactory.GetPerformerRepository();
            var performers = performerRepository.GetAllEntities();
            ;
            var performer = new Performer()
            {
                Id = new IdGenerator<Performer>().Genarate(performers),
                FirstName = firstName,
                LastName = lastName,
                PatronymicName = patronymicName
            };

            performerRepository.Create(performer);
            try
            {
                UnitOfWork.SaveChanges();
            }
            catch (PerformerServiceException exception)
            {
                throw new PerformerServiceException(exception);
            }
            UnitOfWork.Dispose();

            return performer;
        }
        //обновление исполнителя
        public void UpdatePerformer(Performer performer)
        {
            var performerRepository = RepositoryFactory.GetPerformerRepository();

            try
            {
                performerRepository.Update(performer);
            }
            catch (PerformerServiceException exception)
            {
                throw new PerformerServiceException(exception);
            }
        }