P1_TrevorGraham/MvcStoreApplication/BusinessLogic/BusinessLogic.cs
/// <summary>
/// returns the current location from the session, if unsuccessful, returns the default location from the db
/// </summary>
/// <returns></returns>
returns the current location from the session, if unsuccessful, returns the default location from the db
returns the current location from the session if unsuccessful returns the default location from the db
public Guid GetCurrentLocation()
        {
            if (SessionGetCurrentLocation() != null)
            {
                return (Guid)SessionGetCurrentLocation();
            }
            else
            {
                return _repository.GetDefautLocation().LocationId;
            }
        }
public Guid GetCurrentLocation ( ) { if ( SessionGetCurrentLocation ( ) != null ) { return ( Guid ) SessionGetCurrentLocation ( ) ; } else { return _repository . GetDefautLocation ( ) . LocationId ; } }
returns the current location from the session, if unsuccessful, returns the default location from the db
returns the current location from the session if unsuccessful returns the default location from the db
None