public Result List(EmailTemplateAdminFilterDto dto)
        {
            var result = _actionFactory.Action(dto.Action)?.Apply(dto.Ids) ?? new Result();

            if (!result.Success)
            {
                return(result);
            }

            var query = _emailTemplateRepository.AsNoTracking;

            query = new EmailTemplateAdminFilter(query, dto).FilteredQuery();
            query = new EmailTemplateAdminListOrder(query, dto).OrderByQuery();
            result.SetPaging(dto?.Page ?? 1, dto?.Size ?? 10, query.Count());

            result.Data = query
                          .Select(s => new
            {
                s.Id,
                s.Name,
                s.Slug,
            })
                          .Skip((result.Paging.Page - 1) * result.Paging.Size)
                          .Take(result.Paging.Size);

            return(result);
        }
 public IHttpActionResult Get([FromUri] EmailTemplateAdminFilterDto dto)
 {
     return(Result(_emailTemplateAdminService.List(dto)));
 }