public static bool UpdateThemeDIY(ThemeDIY diy) { try { if (diy != null) { return(Data.Themes.UpdateThemeDIY(diy)); } return(false); } catch (Exception ex) { Logs.WriteErrorLog(ex); return(false); } }
public static int CreateThemeDIY(ThemeDIY diy) { try { if (diy != null) { return(Data.Themes.CreateThemeDIY(diy)); } return(-1); } catch (Exception ex) { Logs.WriteErrorLog(ex); return(-1); } }
public bool UpdateThemeDIY(ThemeDIY diy) { DbParameter[] parms = { DbHelper.MakeInParam("@UID", (DbType)SqlDbType.BigInt, 8, diy.UID), DbHelper.MakeInParam("@AlignStyleBg", (DbType)SqlDbType.Int, 4, diy.AlignStyleBg), DbHelper.MakeInParam("@BgColor", (DbType)SqlDbType.VarChar, 50, diy.BgColor), DbHelper.MakeInParam("@BgImgPid", (DbType)SqlDbType.BigInt, 8, diy.BgImgPid), DbHelper.MakeInParam("@BorderStyle", (DbType)SqlDbType.VarChar, 50, diy.BorderStyle), DbHelper.MakeInParam("@ContentColor", (DbType)SqlDbType.VarChar, 50, diy.ContentColor), DbHelper.MakeInParam("@IsLockBg", (DbType)SqlDbType.Int, 4, diy.IsLockBg), DbHelper.MakeInParam("@IsRepeatBg", (DbType)SqlDbType.Int, 4, diy.IsRepeatBg), DbHelper.MakeInParam("@IsUseBg", (DbType)SqlDbType.Int, 4, diy.IsUseBg), DbHelper.MakeInParam("@MainLinkColor", (DbType)SqlDbType.VarChar, 50, diy.MainLinkColor), DbHelper.MakeInParam("@MainTxtColor", (DbType)SqlDbType.VarChar, 50, diy.MainTxtColor), DbHelper.MakeInParam("@SubLinkColor", (DbType)SqlDbType.VarChar, 50, diy.SubLinkColor), DbHelper.MakeInParam("@SubTxtColor", (DbType)SqlDbType.VarChar, 50, diy.SubTxtColor), }; return(TypeConverter.ObjectToInt(DbHelper.ExecuteNonQuery(CommandType.StoredProcedure, "UpdateThemeDIY", parms)) == 1); }
public static bool UpdateThemeDIY(ThemeDIY diy) { return(DatabaseProvider.GetInstance().UpdateThemeDIY(diy)); }
public static int CreateThemeDIY(ThemeDIY diy) { return(DatabaseProvider.GetInstance().CreateThemeDIY(diy)); }