35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using Portfolio.Domain.Features.Articles;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Portfolio.Application.Services.Articles
|
|
{
|
|
public class ArticleService : IArticleService
|
|
{
|
|
public List<Article> GetAllArticles()
|
|
{
|
|
return new List<Article>() {
|
|
|
|
new Article
|
|
{
|
|
Id = 1,
|
|
Title = "Fantasy",
|
|
Content = "Pink ponies and purple giraffes roamed the field. Cotton candy grew from the ground as a chocolate river meandered off to the side. What looked like stones in the pasture were actually rock candy. Everything in her dream seemed to be perfect except for the fact that she had no mouth.",
|
|
|
|
},
|
|
new Article
|
|
{
|
|
Id = 2,
|
|
Title = "Why",
|
|
Content = "Sometimes there isn't a good answer. No matter how you try to rationalize the outcome, it doesn't make sense. And instead of an answer, you are simply left with a question. Why?",
|
|
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|