/// <summary> /// Method Update update exists voting. /// </summary> /// <param name="votingEntity">VotingEntity that need update.</param> public void Update(VotingEntity votingEntity) { try { votingRepository.Update(votingEntity.ToDalVoting()); uow.Commit(); } catch (Exception ex) { logger.Error(logger.GetMessage("Update vote for photo was failed.", this), ex); } }