public ActionResult DelNewsArticles(decimal pIDArticles) { try { decimal preturn = 0; if (SessionData.CurrentUser == null) { return(Redirect("/")); } var objNewsBL = new NewsBL(); ViewBag.lstCategory = WebApps.CommonFunction.AppsCommon.AllCode_GetBy_CdTypeCdName("ARTICLES", "CATEGORIES"); string language = AppsCommon.GetCurrentLang(); NewsInfo pNewsInfo = new NewsInfo(); var ModifiedBy = SessionData.CurrentUser.Username; var ModifiedDate = SessionData.CurrentUser.CurrentDate; pNewsInfo.Id = pIDArticles; pNewsInfo.Languagecode = language; pNewsInfo.Modifiedby = ModifiedBy; pNewsInfo.Modifieddate = ModifiedDate; preturn = objNewsBL.ArticlesDeleted(pNewsInfo); return(Json(new { status = preturn })); } catch (Exception ex) { Logger.LogException(ex); return(View()); } }