public void Delete(BllSharedFile entity) { if (entity == null) { return; } UnitOfWork?.SharedFileRepository?.Delete(entity.ToDalSharedFile()); UnitOfWork?.Commit(); }
public BllSharedFile Get(BllSharedFile entity) { //TODO: Exc?? if (entity == null) { return(null); } var sharedFile = UnitOfWork?.SharedFileRepository?.Get(entity.ToDalSharedFile()); return(sharedFile?.ToBllSharedFileFile()); }