Example #1
0
        public void SubscribeToUser(SubscribeToUserActivityDto model)
        {
            var currentUserId = this.infrastructure.GetCurrentUserId();

            this.entityRepository.CreateNewSubscription(currentUserId, model.ViewingUserId);
        }
Example #2
0
        public void UnsubscribeToUser(SubscribeToUserActivityDto model)
        {
            var cui = this.infrastructure.GetCurrentUserId();

            this.entityRepository.DeleteUserSubscription(cui, model.ViewingUserId);
        }
 public void SubscribeToUser(SubscribeToUserActivityDto model)
 {
     var currentUserId = this.authentication.GetCurrentUserId();
     this.usersSubscriptionRepository.CreateNewSubscription(currentUserId, model.ViewingUserId);
 }
 public void UnsubscribeToUser(SubscribeToUserActivityDto model)
 {
     var cui = this.authentication.GetCurrentUserId();
     this.usersSubscriptionRepository.DeleteUserSubscription(cui, model.ViewingUserId);
 }
Example #5
0
 public ActionResult Unsubscribe(SubscribeToUserActivityDto model)
 {
     this.usersService.UnsubscribeToUser(model);
     return(this.RedirectToAction("Profile", new { id = model.ViewingUserId }));
 }
Example #6
0
 public virtual ActionResult UnsubscribeFromUser(SubscribeToUserActivityDto model)
 {
     this.service.UnsubscribeToUser(model);
     return(this.RedirectToAction(MVC.Readers.Account(model.ViewingUserId)));
 }
 public ActionResult Unsubscribe(SubscribeToUserActivityDto model)
 {
     this.usersService.UnsubscribeToUser(model);
     return this.RedirectToAction("Profile", new { id = model.ViewingUserId });
 }
Example #8
0
        public void SubscribeToUser(SubscribeToUserActivityDto model)
        {
            var currentUserId = this.sessionProvider.GetCurrentUserId();

            this.usersSubscriptionRepository.CreateNewSubscription(currentUserId, model.ViewingUserId);
        }
Example #9
0
        public void UnsubscribeToUser(SubscribeToUserActivityDto model)
        {
            var cui = this.sessionProvider.GetCurrentUserId();

            this.usersSubscriptionRepository.DeleteUserSubscription(cui, model.ViewingUserId);
        }