示例#1
0
        public GetArticlesOutput GetArticles(int storeId)
        {
            var articles = _articleRepository.GetByStoreId(storeId);
            var output   = GetArticlesOutputMapper.Map(articles);

            output.Success = true;

            return(output);
        }
示例#2
0
        public GetArticlesOutput GetArticle(GetArticleInput input)
        {
            var article = _articleRepository.GetById(input.Id);
            var output  = GetArticlesOutputMapper.Map(article);

            output.Success = true;

            return(output);
        }
示例#3
0
        public GetArticlesOutput GetAllArticles()
        {
            var articles = _articleRepository.GetAll();
            var output   = GetArticlesOutputMapper.Map(articles);

            output.Success = true;

            return(output);
        }