TopShelfCustomer/TopShelfCustomer.Api/Services/StoreData.cs
/// <summary>
/// GetStoresByZipCode:
///
/// Fetches all Stores from the database with a
/// matching ZipCode property.
/// </summary>
/// <param name="zipCode"> The ZipCode to match </param>
/// <returns> A list of Stores </returns>


Fetches all Stores from the database with a
matching ZipCode property.
Fetches all Stores from the database with a matching ZipCode property .
public List<Store> GetStoresByZipCode ( int zipCode ) {
            SqlDataAccess sql = new SqlDataAccess();
            var p = new { ZipCode = zipCode };
            var output = sql.LoadData<Store, dynamic>( "dbo.spGetStoresByZipCode", p, "TopShelfDbConnection" );
            return output;
        }
public List < Store > GetStoresByZipCode ( int zipCode ) { SqlDataAccess sql = new SqlDataAccess ( ) ; var p = new { ZipCode = zipCode } ; var output = sql . LoadData < Store , dynamic > ( " " , p , " " ) ; return output ; }
GetStoresByZipCode:
GetStoresByZipCode :
A list of Stores
A list of Stores
zipCode
int
The ZipCode to match
The ZipCode to match