public ActionResult GetPlistGroupAccounts(GetPlistGroupAccounts input) { if (!ModelState.IsValid) { return(ModelState.ToJsonResult()); } Debug.Assert(input.GroupId != null, "requestModel.GroupId != null"); var groupUserAccountTrs = GetRequiredService <IAccountQuery>().GetPlistGroupAccountTrs( input.Key, input.GroupId.Value, input); Debug.Assert(input.Total != null, "requestModel.total != null"); var data = new MiniGrid <Dictionary <string, object> > { total = input.Total.Value, data = groupUserAccountTrs }; return(this.JsonResult(data)); }
public ActionResult GetPlistGroupAccounts(GetPlistGroupAccounts input) { if (!ModelState.IsValid) { return ModelState.ToJsonResult(); } Debug.Assert(input.GroupId != null, "requestModel.GroupId != null"); var groupUserAccountTrs = GetRequiredService<IAccountQuery>().GetPlistGroupAccountTrs( input.Key, input.GroupId.Value, input); Debug.Assert(input.Total != null, "requestModel.total != null"); var data = new MiniGrid<Dictionary<string, object>> { total = input.Total.Value, data = groupUserAccountTrs }; return this.JsonResult(data); }