public void RemoveCurrentMember(string courseId) { string currentUserId = httpContextAccessor.HttpContext.GetCurrentUserId(); var currentMember = courseMemberService.GetMemberByUserAndCourse(currentUserId, courseId); courseMemberService.ArchiveMemberById(currentMember.Id.ToString()); courseMemberService.CommitChanges(); }
public void Archive(string memberId) { courseMemberService.ArchiveMemberById(memberId); courseMemberService.CommitChanges(); }