public List <T> GetAll <T>() where T : class, BaseModel { return(db.Set <T>().ToList()); }
public BaseService( PhonebookDbContext dbContext) { _dbContext = dbContext; this.dbSet = _dbContext.Set <T>(); }