Exemplo n.º 1
0
 private void DeleteByID(int BannerId)
 {
     try
     {
         string modulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
         BannerInfo bannerObj = new BannerInfo();
         BannerSqlProvider sqlObj = new BannerSqlProvider();
         sqlObj.CorporateBannerDeleteByBannerID(BannerId, GetPortalID, GetUsername);
         ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/SageFrameCorporateBanner/ModuleLocalText", "BannerDeletedSuccessfully"), "", SageMessageType.Success);
         BindBannerGrid();
         Session["EditBannerID"] = null;
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }