public static bool UpdateGameAnnoucement(GameAnnoucement pBo) { try { Update(pBo); return true; } catch { return false; } }
public static bool InsertGameAnnoucement(GameAnnoucement GameAnnoucement) { try { Add(GameAnnoucement); return true; } catch { return false; } }
public static bool DeleteGameAnnoucement(GameAnnoucement pBO) { try { Delete(pBO.GameAnnoucementID); return true; } catch { return false; } }
// SUPPORT GameAnnoucement ShortenGameAnnoucement(GameAnnoucement ann) { if (ann.AnnoucementContent.Length > 250) { ann.AnnoucementContent = ann.AnnoucementContent.Substring(0, 250); ann.AnnoucementContent += " ... "; ViewData[WebConstants.ViewDataKey_GameAnnoucementHasMore] = "true"; } return ann; }