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); }
public void Remove(TEntity data) { _dataSetUow.RemoveEntity(data); }