TopShelfCustomer/TopShelfCustomer.Api/Services/StoreData.cs
/// <summary>
/// GetAllProducts:
///
/// Returns all products in the Products
/// database table.
/// </summary>
/// <returns> A List of all products in the Products table </returns>


Returns all products in the Products
database table.
Returns all products in the Products database table .
public List<Product> GetAllProducts () {
            SqlDataAccess data = new SqlDataAccess();
            var p = new object();
            var output = data.LoadData<Product, dynamic>( "dbo.spGetAllProducts", p, "TopShelfDbConnection" );
            return output;
        }
public List < Product > GetAllProducts ( ) { SqlDataAccess data = new SqlDataAccess ( ) ; var p = new object ( ) ; var output = data . LoadData < Product , dynamic > ( " " , p , " " ) ; return output ; }
GetAllProducts:
GetAllProducts :
A List of all products in the Products table
A List of all products in the Products table