public static TEntity GetEntity <TEntity>(Expression <Func <TEntity, bool> > predicate) where TEntity : class, new() { using (UnitOfWork.UnitOfWork unitOfWork = new UnitOfWork.UnitOfWork(DBContext_External)) return(unitOfWork.GetEntity <TEntity>(predicate)); }
public static TEntity GetEntity <TEntity>(int id) where TEntity : class, new() { using (UnitOfWork.UnitOfWork unitOfWork = new UnitOfWork.UnitOfWork(DBContext_External)) return(unitOfWork.GetEntity <TEntity>(id)); }