public void AddAdminTo(string courseId, WrapperVM <string> adminId) { if (peopleService.IsAdminOfCourse(adminId.Value, courseId)) { throw new ApplicationException("This user is already admin of the course"); } var newAdmin = peopleService.GetById(adminId.Value); courseService.AddAdmin(newAdmin, courseId); courseService.CommitChanges(); }