public int AddTag(CustTagModel model)
{
const string sql = @"INSERT INTO cust_tag(innerid, tagname, hotcount, isenabled, createdtime, modifiedtime) VALUES (uuid(), @tagname, @hotcount, @isenabled, @createdtime, @modifiedtime);";
try
{
Helper.Execute(sql, model);
return 1;
}
catch (Exception ex)
{
return 0;
}
}