28 lines
698 B
C#
28 lines
698 B
C#
using Mini.Model;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Linq;
|
|
using Mini.Model.WxEntity;
|
|
|
|
namespace Mini.Services.wx
|
|
{
|
|
public class bas_parameter_Service: Ibas_parameter_Service
|
|
{
|
|
|
|
private readonly wxContext _crmContext;
|
|
public bas_parameter_Service(wxContext crmContext)
|
|
{
|
|
_crmContext = crmContext;
|
|
}
|
|
public string GetParameterValue(string parakey)
|
|
{
|
|
Bas_Parameter entr = _crmContext.Bas_Parameter.FirstOrDefault(m => m.parakey == parakey);
|
|
if (entr == null)
|
|
return "";
|
|
else
|
|
return entr.paravalue;
|
|
}
|
|
}
|
|
}
|