init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
22
Kreta.BusinessLogic/Helpers/IntezmenyConfigHelper.cs
Normal file
22
Kreta.BusinessLogic/Helpers/IntezmenyConfigHelper.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using Kreta.Core.ConnectionType;
|
||||
using Kreta.DataAccessManual;
|
||||
using Kreta.Enums.ManualEnums;
|
||||
|
||||
namespace Kreta.BusinessLogic.Helpers
|
||||
{
|
||||
public class IntezmenyConfigHelper : LogicBase
|
||||
{
|
||||
public IntezmenyConfigHelper(IConnectionType connectionType) : base(connectionType) { }
|
||||
|
||||
public T GetIntezmenyConfig<T>(IntezmenyConfigModulEnum modulName, IntezmenyConfigTipusEnum configName)
|
||||
{
|
||||
return Dal.CustomConnection.Run(ConnectionType, h =>
|
||||
{
|
||||
var dal = h.IntezmenyConfigDAL();
|
||||
object value = dal.GetIntezmenyConfig(IntezmenyId, modulName.ToString(), configName.ToString());
|
||||
return (T)Convert.ChangeType(value, typeof(T));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue