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