Beispiel #1
0
 public static bool UpdateGameAnnoucement(GameAnnoucement pBo)
 {
     try
     {
         Update(pBo);
         return true;
     }
     catch
     {
         return false;
     }
 }
Beispiel #2
0
 public static bool InsertGameAnnoucement(GameAnnoucement GameAnnoucement)
 {
     try
     {
         Add(GameAnnoucement);
         return true;
     }
     catch
     {
         return false;
     }
 }
Beispiel #3
0
 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;
        }