public List<Waitlist> GetWaitList() { var errors = new List<string>(); var repository = new WaitlistRepository(); var service = new WaitlistService(repository); return service.GetWaitlist(ref errors); }
public string InsertWaitlist(Waitlist waitlist) { var errors = new List<string>(); var repository = new WaitlistRepository(); var service = new WaitlistService(repository); service.InsertWaitlist(null, ref errors); if (errors.Count == 0) { return "ok"; } return "error"; }
public string UpdateStudent(Waitlist waitlist) { var errors = new List<string>(); var repository = new WaitlistRepository(); var service = new WaitlistService(repository); service.UpdateWaitlist(waitlist, ref errors); if (errors.Count == 0) { return "ok"; } return "error"; }