public virtual async Task <IActionResult> ArticleByIdGet([FromQuery] string articleId)
        {
            _dbContext.RefreshFullDomain();
            var workflowById = await _genService.GetSingleByPredicateAsync((x => {
                return(x.Articleid.ToString() == articleId);
            }));

            return(new ObjectResult(workflowById));
        }
Exemplo n.º 2
0
        public virtual async Task <IActionResult> ContentblockByIdGet([FromQuery] string ContentblockId)
        {
            _dbContext.RefreshFullDomain();
            var workflowById = await _genService.GetSingleByPredicateAsync((x => {
                return(x.Contentblockid.ToString() == ContentblockId);
            }), d =>
            {
                return(d.Include("Contentblockimagemap")
                       .Include("Contentblockimagemap.Image"));
            });

            return(new ObjectResult(workflowById));
        }