public async Task <List <RuleSummaryDTO> > GetRulesSummary(RuleEntityScope scope) { return(_muw.Repository <EFRule>().GetList(r => r.Scope == scope).Select(r => r.GetRuleSummaryDTO()).ToList()); }
public async Task <BaseHttpActionResult> GetRulesSummary(RuleEntityScope scope) { var stylesSummary = await _repo.GetRulesSummary(scope); return(new SuccessHttpActionResult(stylesSummary)); }
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()); }
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()); }