public void SubscribeToUser(SubscribeToUserActivityDto model) { var currentUserId = this.infrastructure.GetCurrentUserId(); this.entityRepository.CreateNewSubscription(currentUserId, model.ViewingUserId); }
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); }
public ActionResult Unsubscribe(SubscribeToUserActivityDto model) { this.usersService.UnsubscribeToUser(model); return(this.RedirectToAction("Profile", new { id = model.ViewingUserId })); }
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 }); }
public void SubscribeToUser(SubscribeToUserActivityDto model) { var currentUserId = this.sessionProvider.GetCurrentUserId(); this.usersSubscriptionRepository.CreateNewSubscription(currentUserId, model.ViewingUserId); }
public void UnsubscribeToUser(SubscribeToUserActivityDto model) { var cui = this.sessionProvider.GetCurrentUserId(); this.usersSubscriptionRepository.DeleteUserSubscription(cui, model.ViewingUserId); }