public override async Task Execute() { var query = Session.Query <MeetingTypeMaster, MeetingTypeIndex>() .Statistics(out QueryStatistics stats) .Take(Filter.Take) .Skip(Filter.Skip * Filter.Take) .OrderByDescending(a => a.DateModified); if (Filter.RecurRestrict) { query = query.Where(u => u.IsRecur); } query = await Init(query, Filter, "meetingType"); Result = await MeetingTypeDisplayTrans.Transform(query.OfType <MeetingType>()).ToListAsync(); Process(Filter, stats); }
public override async Task Execute() { Result = await MeetingTypeDisplayTrans .Transform(Session.Query <MeetingType, MeetingTypeIndex>().Where(c => c.Id == Id)).FirstOrDefaultAsync(); }