using System.Collections.Generic; using System.Threading.Tasks; using Abp.Auditing; using BCS.BMC.Sessions.Dto; namespace BCS.BMC.Sessions { public class SessionAppService : BMCAppServiceBase, ISessionAppService { [DisableAuditing] public async Task GetCurrentLoginInformations() { var output = new GetCurrentLoginInformationsOutput { Application = new ApplicationInfoDto { Version = AppVersionHelper.Version, ReleaseDate = AppVersionHelper.ReleaseDate, Features = new Dictionary() } }; if (AbpSession.TenantId.HasValue) { output.Tenant = ObjectMapper.Map(await GetCurrentTenantAsync()); } if (AbpSession.UserId.HasValue) { output.User = ObjectMapper.Map(await GetCurrentUserAsync()); } return output; } } }