コード例 #1
0
 public static bool UpdateGameAnnoucement(GameAnnoucement pBo)
 {
     try
     {
         Update(pBo);
         return true;
     }
     catch
     {
         return false;
     }
 }
コード例 #2
0
 public static bool InsertGameAnnoucement(GameAnnoucement GameAnnoucement)
 {
     try
     {
         Add(GameAnnoucement);
         return true;
     }
     catch
     {
         return false;
     }
 }
コード例 #3
0
 public static bool DeleteGameAnnoucement(GameAnnoucement pBO)
 {
     try
     {
         Delete(pBO.GameAnnoucementID);
         return true;
     }
     catch
     {
         return false;
     }
 }
コード例 #4
0
        // 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;
        }