public int AddBoutique(CarBoutiqueModel model)
{
const string sql = @"INSERT INTO boutique_info
(innerid, custid, enterprisename, logo, introduces, telephone, mobile, address, tempid, sort, expand, createdtime, createrid, modifiedtime, modifierid)
VALUES
(@innerid, @custid, @enterprisename, @logo, @introduces, @telephone, @mobile, @address, @tempid, @sort, @expand, @createdtime, @createrid, @modifiedtime, @modifierid);";
try
{
Helper.Execute(sql, model);
return 1;
}
catch (Exception ex)
{
LoggerFactories.CreateLogger().Write("添加精品精品店基本信息异常:", TraceEventType.Error, ex);
return 0;
}
}