public void RemoveCurrentMember(string courseId)
        {
            string currentUserId = httpContextAccessor.HttpContext.GetCurrentUserId();
            var    currentMember = courseMemberService.GetMemberByUserAndCourse(currentUserId, courseId);

            courseMemberService.ArchiveMemberById(currentMember.Id.ToString());
            courseMemberService.CommitChanges();
        }
Exemple #2
0
 public void Archive(string memberId)
 {
     courseMemberService.ArchiveMemberById(memberId);
     courseMemberService.CommitChanges();
 }