20 lines
600 B
C#
20 lines
600 B
C#
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<QC_COMPLAIN_NOTICE>, 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<QC_COMPLAIN_NOTICE>().FirstOrDefault();
|
|
}
|
|
}
|
|
}
|