init
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user