TopShelfCustomer/TopShelfCustomer.Api/Services/UserData.cs
/// <summary>
/// GetUserByEmail:
///
/// Fetches Users with EmailAddress of "email"
/// from the database and returns it.
/// </summary>
/// <param name="email"> The email address </param>
/// <returns> A List of Users with one element </returns>


Fetches Users with EmailAddress of "email"
from the database and returns it.
Fetches Users with EmailAddress of " email " from the database and returns it .
public List<User> GetUserByEmail ( string email ) {
            SqlDataAccess sql = new SqlDataAccess();
            var p = new { Email = email };      
            var output = sql.LoadData<User, dynamic>( "dbo.spGetUserByEmail", p, "TopShelfDbConnection" );      
            return output;
        }
public List < User > GetUserByEmail ( string email ) { SqlDataAccess sql = new SqlDataAccess ( ) ; var p = new { Email = email } ; var output = sql . LoadData < User , dynamic > ( " " , p , " " ) ; return output ; }
GetUserByEmail:
GetUserByEmail :
//Temporary property object //Fetch the User(s)
A List of Users with one element
A List of Users with one element
email
string
The email address
The email address