Example #1
0
 public IEnumerable<string> GetEmailsByCategory(Category category)
 {
     using (var connection = new SqlConnection(connectionString))
     {
         return connection.Query(selectByCategoryIdStatement, new {categoryId = category.Id})
             .Select(ResultToEmail);
     }
 }
Example #2
0
 public IEnumerable<string> GetEmailsByCategory(Category category)
 {
     return new string[]
     {
         "*****@*****.**",
         "*****@*****.**"
     };
 }