public void Handle(UpdateGeographicExpertiseLocation command)
        {
            if (command == null)
            {
                throw new ArgumentNullException("command");
            }

            /* Retrieve the degree to update. */
            var target = _entities.Get <GeographicExpertiseLocation>().Single(a => a.RevisionId == command.Id);

            if (target == null)
            {
                string message = String.Format("GeographicExpertiseLocation Id {0} not found.", command.Id);
                throw new Exception(message);
            }

            var updateExpertise = new GeographicExpertiseLocation
            {
                PlaceId = command.PlaceId,
            };

            if (target.Equals(updateExpertise))
            {
                return;
            }

            /* Update fields */
            target.PlaceId            = command.PlaceId;
            target.UpdatedOnUtc       = command.UpdatedOn.ToUniversalTime();
            target.UpdatedByPrincipal = command.Principal.Identity.Name;

            _entities.Update(target);

            if (!command.NoCommit)
            {
                _unitOfWork.SaveChanges();
            }
        }
 protected bool Equals(GeographicExpertiseLocation other)
 {
     return PlaceId == other.PlaceId;
 }
 protected bool Equals(GeographicExpertiseLocation other)
 {
     return(PlaceId == other.PlaceId);
 }