using System.Linq; using WX.CRM.Common; using WX.CRM.DAL.Quality; using WX.CRM.IBLL.Quality; using WX.CRM.Model.Entity; namespace WX.CRM.BLL.Quality { public class QC_COMPLAIN_NOTICE_BL : DbContextRepository, IQC_COMPLAIN_NOTICE { public QC_COMPLAIN_NOTICE GetNotice(decimal userId) { var table = new QC_COMPLAIN_NOTICE_DAL().GetNotice(userId); if (table == null || table.Rows.Count == 0) return new QC_COMPLAIN_NOTICE(); return table.ToList().FirstOrDefault(); } } }