public AssignmentController(AssignmentsRepository assignment) { _assignment = assignment; }
public assignmentsController(AssignmentsRepository repository) { this._repository = repository ?? throw new ArgumentNullException(nameof(repository)); }