Exemplo n.º 1
0
 public void RequestMembership()
 {
     if (_webContext.CurrentUser != null)
     {
         GroupMember gm = new GroupMember();
         gm.AccountID  = _webContext.CurrentUser.AccountID;
         gm.GroupID    = _webContext.GroupID;
         gm.CreateDate = DateTime.Now;
         gm.IsAdmin    = false;
         gm.IsApproved = false;
         _groupMemberRepository.SaveGroupMember(gm);
         _view.ShowMessage("Membership requested successfully!");
     }
 }