TopShelfCustomer/TopShelfCustomer.Api/Services/OrderData.cs
/// <summary>
/// GetOrdersByEmail:
///
/// Wrapper method to allow database access.
/// Fetches all Orders associated with the passed
/// email address.
/// </summary>
/// <param name="email"></param>
/// <returns> A list of orders from the email address argument </returns>


Wrapper method to allow database access.
Fetches all Orders associated with the passed
email address.
Wrapper method to allow database access . Fetches all Orders associated with the passed email address .
public List<Order> GetOrdersByEmail ( string email ) {
            SqlDataAccess sql = new SqlDataAccess();
            var p = new { Email = email };
            var output = sql.LoadData<Order, dynamic>( "dbo.spGetOrdersByEmail", p, "TopShelfDbConnection" );
            return output;
        }
public List < Order > GetOrdersByEmail ( string email ) { SqlDataAccess sql = new SqlDataAccess ( ) ; var p = new { Email = email } ; var output = sql . LoadData < Order , dynamic > ( " " , p , " " ) ; return output ; }
GetOrdersByEmail:
GetOrdersByEmail :
A list of orders from the email address argument
A list of orders from the email address argument
email
string
None