namespace App.Persistent.SQL { public class MemberInfoRepository : IMemberInfoRepository { private string connectionString;
public MemberInfoRepository(string connectionString) { this.connectionString = connectionString; }
public Tuple<Exception, MemberInfo> FindMemberInfo(int memberID) { try { using (var conn = new SqlConnection(this.connectionString)) { var result = conn.QueryFirstOrDefault<MemberInfo>( "SPName", new { MemberID = memberID }, commandType: CommandType.StoredProcedure);