using System.Net; using WIDESEAWCS_Core.BaseServices; using WIDESEAWCS_ISystemRepository; using WIDESEAWCS_ISystemServices; using WIDESEAWCS_Core.BaseRepository; using WIDESEAWCS_Model.Models; namespace WIDESEA_Services { public class Sys_ConfigService : ServiceBase, ISys_ConfigService { private readonly IUnitOfWorkManage _unitOfWorkManage; public Sys_ConfigService(ISys_ConfigRepository repository, IUnitOfWorkManage unitOfWorkManage) : base(repository) { _unitOfWorkManage = unitOfWorkManage; } /// public List GetAll() { return BaseDal.QueryData(); } /// public List GetConfigsByCategory(string category) { return BaseDal.QueryData(x => x.Category == category).ToList(); } /// public Sys_Config GetByConfigKey(string category, string configKey) { return BaseDal.QueryData(x => x.Category == category && x.ConfigKey == configKey).FirstOrDefault(); } } }