public string RequestPreReqOverride(PreReqOverride pr) { var errors = new List<string>(); var repository = new StudentRepository(this.entities); var service = new StudentService(repository); service.RequestPreReqOverride(pr.ScheduleId, pr.StudentId, ref errors); if (errors.Count == 0) { return "ok"; } return "error"; }