public string Handle(TEntity message)
        {
            //var entity = _dataSetUow.Find<TEntity>(message);
            //if (entity == null)
            //{
            //    throw new ArgumentException($"Entity {typeof(TEntity).Name} with id={message.GetId()} doesn't exists");
            //}

            _dataSetUow.RemoveEntity(message);

            return(string.Empty);
        }
Пример #2
0
 public void Remove(TEntity data)
 {
     _dataSetUow.RemoveEntity(data);
 }