P1_TrevorGraham/MvcStoreApplication/BusinessLogic/BusinessLogic.cs
/// <summary>
/// attempts to set the current location in the session and returns whether or not it was successful
/// </summary>
/// <param name="locationId"></param>
/// <returns></returns>
attempts to set the current location in the session and returns whether or not it was successful
attempts to set the current location in the session and returns whether or not it was successful
public bool SetCurrentLocation(Guid locationId)
        {
            if (_repository.LocationIsInDb(locationId))
            {
                if (SessionAssignCurrentLocation(locationId))
                    return true;
            }
            return false;
        }
public bool SetCurrentLocation ( Guid locationId ) { if ( _repository . LocationIsInDb ( locationId ) ) { if ( SessionAssignCurrentLocation ( locationId ) ) return true ; } return false ; }
attempts to set the current location in the session and returns whether or not it was successful
attempts to set the current location in the session and returns whether or not it was successful
//currentLocationId = locationId; //if unsuccessful
None
locationId
Guid
None