public GetArticlesOutput GetArticles(int storeId) { var articles = _articleRepository.GetByStoreId(storeId); var output = GetArticlesOutputMapper.Map(articles); output.Success = true; return(output); }
public GetArticlesOutput GetArticle(GetArticleInput input) { var article = _articleRepository.GetById(input.Id); var output = GetArticlesOutputMapper.Map(article); output.Success = true; return(output); }
public GetArticlesOutput GetAllArticles() { var articles = _articleRepository.GetAll(); var output = GetArticlesOutputMapper.Map(articles); output.Success = true; return(output); }