using Admin.Core.IRepository; using Admin.Core.IService; using Admin.Core.Model; using log4net; using System; using System.Threading.Tasks; namespace Admin.Core.Service { /// /// RecordProductFinishServices /// public class RecordBackPanelComplateServices : BaseServices, IRecordBackPanelComplateServices { private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(RecordBackPanelComplate)); private readonly IBaseRepository _dal; public RecordBackPanelComplateServices(IBaseRepository dal) { this._dal = dal; base.BaseDal = dal; } public async Task InsertBackPanelCimplate(RecordBackPanelComplate sidePanelComplate) { bool result = false; try { int r =await _dal.AddAsync(sidePanelComplate); if (r > 0) result=true; } catch (Exception ex) { logHelper.Error("完成记录添加异常", ex); } return result; } } }