public ActionResult AddOrEdit(string Id = "") { try { var data = stickyService.GetStickyByID(Id); if (data != null) { var model = new StickyViewModel(); model.Meta_Name = data.Meta_Name; model.Meta_Value = data.Meta_Value; return(PartialView("CRUDSticky", model)); } } catch (Exception) { } return(PartialView("CRUDSticky", new StickyViewModel())); }
public ActionResult _header() { var phone = contactService.GetContactByID("E0D4420B-22E2-47D0-B835-E77A010F8EDD"); ViewBag.Phone = phone; var language = stickyService.GetStickyByID("1a0ecb96-ff94-4523-a9c6-8bddababcbe0"); ViewBag.Language = language; return(PartialView()); }