示例#1
0
        public void Handle(DeleteCustomPage message)
        {
            var itemToDelete = _repository.Get(i => i.EntityId == message.Id);

            _repository.Delete(itemToDelete);
            _repository.Save();
            //_repository.Delete(message.EntityId, -1);
        }
示例#2
0
 public CustomPage GetById(System.Guid entityId)
 {
     return(_customPageRepository.Get(cp => cp.EntityId == entityId));
 }