P1_TrevorGraham/MvcStoreApplication/BusinessLogic/BusinessLogic.cs
/// <summary>
/// Saves the given guid as the current user in the session; returns true if successful
/// </summary>
/// <param name="userId"></param>
/// <returns></returns>
Saves the given guid as the current user in the session; returns true if successful
Saves the given guid as the current user in the session ; returns true if successful
private bool SessionAssignCurrentUser(Guid userId)
        {
            var id = JsonConvert.SerializeObject(userId);
            _session.SetString(currentUserKey, id);
            if (SessionGetCurrentUser() != null)
                return true;
            return false;
        }
private bool SessionAssignCurrentUser ( Guid userId ) { var id = JsonConvert . SerializeObject ( userId ) ; _session . SetString ( currentUserKey , id ) ; if ( SessionGetCurrentUser ( ) != null ) return true ; return false ; }
Saves the given guid as the current user in the session; returns true if successful
Saves the given guid as the current user in the session ; returns true if successful
None
userId
Guid
None