TopShelfCustomer/TopShelfCustomer.Api/Services/StoreData.cs
/// <summary>
/// GetStoreById:
///
/// Fetches the Store with an Id property that matches
/// the "id" argument.
/// </summary>
/// <param name="id"> the Id property to match </param>
/// <returns> A List of Stores with 1 element </returns>


Fetches the Store with an Id property that matches
the "id" argument.
Fetches the Store with an Id property that matches the " id " argument .
public List<Store> GetStoreById ( int id ) {
            SqlDataAccess sql = new SqlDataAccess();
            var p = new { Id = id };
            var output = sql.LoadData<Store, dynamic>( "dbo.spGetStoreById", p, "TopShelfDbConnection" );
            return output;
        }
public List < Store > GetStoreById ( int id ) { SqlDataAccess sql = new SqlDataAccess ( ) ; var p = new { Id = id } ; var output = sql . LoadData < Store , dynamic > ( " " , p , " " ) ; return output ; }
GetStoreById:
GetStoreById :
A List of Stores with 1 element
A List of Stores with 1 element
id
int
the Id property to match
the Id property to match