public Repository(TaskManagerContext context) { this.context = context; entities = context.Set <T>(); }