P1_TrevorGraham/MvcStoreApplication/BusinessLogic/BusinessLogic.cs
/// <summary>
/// attempts to checkout and returns whether or not it was successful
/// </summary>
/// <returns></returns>
attempts to checkout and returns whether or not it was successful
attempts to checkout and returns whether or not it was successful
public bool Checkout()
        {
            if (CurrentUserIsCustomer())
            {
                var cart = _repository.GetOpenCartForCustomer((Guid)SessionGetCurrentUser());
                return _repository.CompleteOrder(cart);
            }
            return false;
        }
public bool Checkout ( ) { if ( CurrentUserIsCustomer ( ) ) { var cart = _repository . GetOpenCartForCustomer ( ( Guid ) SessionGetCurrentUser ( ) ) ; return _repository . CompleteOrder ( cart ) ; } return false ; }
attempts to checkout and returns whether or not it was successful
attempts to checkout and returns whether or not it was successful
None