SHARE
TWEET

Untitled

a guest Feb 28th, 2012 16 Never
  1. public class MasterLoginLogoutPartialActionExtension : IPartialActionExtension<MasterLoginLogoutModel>
  2. {
  3.     private readonly IAuthenticationManager _authenticationManager;
  4.  
  5.     public MasterLoginLogoutPartialActionExtension(IAuthenticationManager authenticationManager)
  6.     {
  7.         _authenticationManager = authenticationManager;
  8.     }
  9.  
  10.     public MasterLoginLogoutModel Modify(MasterLoginLogoutModel model)
  11.     {
  12.         model.IsAuthenticated = _authenticationManager.LoggedIn;
  13.            
  14.         return model;
  15.     }
  16. }
RAW Paste Data
Top