public async Task <APIResult> Gets() { var rs = await accountQueries.GetsAsync(); return(new APIResult() { Result = 0, Data = rs }); }
public override async Task <IEnumerable <AccountSingleRole> > HandleCommand(GetCommonAccountPartnerCommand request, CancellationToken cancellationToken) { var company = await companyQueries.GetByUserIdAsync(request.LoginSession.Id); if (company == null) { throw new BusinessException("Common.NoPermission"); } var lst = (await accountQueries.GetsAsync(company?.Id)); return(lst); }