public object Any(NamedConnection request) { using (var db = ConnectionFactory.OpenDbConnection("SqlServer")) { using (var cmd = db.SqlProc( "GetUserIdsFromEmailAddresses", new {request.EmailAddresses})) { var userIds = cmd.ConvertToList<int>(); return userIds; } } }
public object Any(NamedConnection request) { using (var db = DbFactory.OpenDbConnection("SqlServer")) { using (var cmd = db.SqlProc( "GetUserIdsFromEmailAddresses", new { request.EmailAddresses })) { var userIds = cmd.ConvertToList <int>(); return(userIds); } } }