Example #1
0
 public async Task <List <RuleSummaryDTO> > GetRulesSummary(RuleEntityScope scope)
 {
     return(_muw.Repository <EFRule>().GetList(r => r.Scope == scope).Select(r => r.GetRuleSummaryDTO()).ToList());
 }
Example #2
0
        public async Task <BaseHttpActionResult> GetRulesSummary(RuleEntityScope scope)
        {
            var stylesSummary = await _repo.GetRulesSummary(scope);

            return(new SuccessHttpActionResult(stylesSummary));
        }
Example #3
0
 public async Task <List <RuleDTO> > GetStyles(RuleEntityScope scope, string userId, string entityId)
 {
     return(_muw.Repository <EFRule>().GetList(r => r.Scope == scope, null,
                                               new Expression <Func <EFRule, object> >[] { (r => r.DefaultStyle) }).Select(r => r.GetRuleDTO(userId, entityId)).ToList());
 }
Example #4
0
 public async Task <List <RuleDTO> > GetStyles(RuleEntityScope scope, string userId, string entityId)
 {
     return(_muw.Repository <MockRule>().GetList(r => r.Scope == scope).Select(r => r.GetRuleDTO(userId, entityId)).ToList());
 }