Esempio n. 1
0
 public ActionResult EditFooter(EditFooter EditFooter, bool chkLink, string FooterText2, string Page)
 {
     if (IsValidSessions())
     {
         Footer Footer =_RFooter.DetailsFooter(EditFooter.Id);
         Footer.ModifiedDate = DateTime.Now.Date;
         Footer.FooterText = EditFooter.FooterText;
         if (FooterText2 != null && FooterText2.Length > 0)
             Footer.FooterText = FooterText2.Replace("\r\n", "</br>") ;
         Footer.FooterLink = (chkLink == true) ? EditFooter.FooterLink : null;
         _RFooter.SaveFooter(Footer);
         return RedirectToAction("FooterList", new { Page = Page });
     }
     else
         return RedirectToAction("Login", "Home");
 }
Esempio n. 2
0
 public ActionResult EditFooter(int Id, string Extparam)
 {
     if (IsValidSessions())
     {
             Footer Footer =_RFooter.DetailsFooter(Id);
             EditFooter EditFooter = new EditFooter() { Id = Footer.Id, FooterColumnNameId = Footer.FooterColumnNameId, FooterLink = Footer.FooterLink, FooterText = Footer.FooterText.Replace("</br>", "\r\n") };
             ViewBag.Page = Extparam;
             return View(EditFooter);
     }
     else
         return RedirectToAction("Login", "Home");
 }