P1_TrevorGraham/MvcStoreApplication/BusinessLogic/BusinessLogic.cs
/// <summary>
/// Returns true if the current user is a customer and false if not
/// </summary>
/// <returns></returns>
Returns true if the current user is a customer and false if not
Returns true if the current user is a customer and false if not
public bool CurrentUserIsCustomer()
        {
            if (UserIsSignedIn())
                return _repository.UserIsCustomer((Guid)GetCurrentCustomer());
            else return false;
        }
public bool CurrentUserIsCustomer ( ) { if ( UserIsSignedIn ( ) ) return _repository . UserIsCustomer ( ( Guid ) GetCurrentCustomer ( ) ) ; else return false ; }
Returns true if the current user is a customer and false if not
Returns true if the current user is a customer and false if not
//return _repository.UserIsCustomer((Guid)currentUserId);
None