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