init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
24
KretaWeb/Helpers/ConnectionTypeExtensions.cs
Normal file
24
KretaWeb/Helpers/ConnectionTypeExtensions.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using Kreta.BusinessLogic.Utils;
|
||||
using Kreta.Core.ConnectionType;
|
||||
using Kreta.Web.Security;
|
||||
|
||||
namespace Kreta.Web.Helpers
|
||||
{
|
||||
public static class ConnectionTypeExtensions
|
||||
{
|
||||
public static SessionConnectionType GetActiveSessionConnectionType()
|
||||
=> new SessionConnectionType(ClaimData.SessionId, ClaimData.FelhasznaloId, ClaimData.IntezmenyId, ClaimData.IntezmenyAzonosito, ClaimData.AktivTanevID.Value);
|
||||
|
||||
public static SessionConnectionType GetSessionConnectionType()
|
||||
=> new SessionConnectionType(ClaimData.SessionId, ClaimData.FelhasznaloId, ClaimData.IntezmenyId, ClaimData.IntezmenyAzonosito, ClaimData.SelectedTanevID.Value);
|
||||
|
||||
public static SessionConnectionType GetNextSessionConnectionType()
|
||||
=> new SessionConnectionType(ClaimData.SessionId, ClaimData.FelhasznaloId, ClaimData.IntezmenyId, ClaimData.IntezmenyAzonosito, ClaimData.KovTanevID.Value);
|
||||
|
||||
public static OrganizationConnectionType GetOrganizationConnectionType()
|
||||
=> new OrganizationConnectionType(ClaimData.FelhasznaloId, CommonUtils.GetIntezmenyId(ClaimData.FelhasznaloId), CommonUtils.GetOrganizationIdentifier(), CommonUtils.GetAktualisTanevId(ClaimData.FelhasznaloId));
|
||||
|
||||
public static SystemConnectionType GetSystemConnectionType()
|
||||
=> new SystemConnectionType(ClaimData.FelhasznaloId, ClaimData.IntezmenyId, ClaimData.IntezmenyAzonosito, ClaimData.AktivTanevID.Value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue