33 lines
832 B
C#
33 lines
832 B
C#
using System;
|
|
using WX.CRM.BLL.Base;
|
|
using WX.CRM.BLL.Util;
|
|
using WX.CRM.Common;
|
|
using WX.CRM.IBLL.QQ;
|
|
using WX.CRM.Model.Entity;
|
|
|
|
namespace WX.CRM.BLL.QQ
|
|
{
|
|
public class QQ_DBUPLOADLOG_BL : IQQ_DBUPLOADLOG
|
|
{
|
|
public bool Add(QQ_DBUPLOADLOG model)
|
|
{
|
|
try
|
|
{
|
|
using (crmContext db = new crmContext())
|
|
{
|
|
model.ID = new SEQUENCES_BL().Seq_base_get();
|
|
model.CTIME = DateTime.Now;
|
|
db.QQ_DBUPLOADLOG.Add(model);
|
|
bool result = db.SaveChanges().GetResult();
|
|
return result;
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(ex.ToString());
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|