public ActionResult AddOrUpdate(ConfirgurationViewModel model)
 {
     try
     {
         var stickey = confirgurationService.GetConfirgurationByID(model.Id);
         stickey.Meta_Value = model.Meta_Value != null?model.Meta_Value : "#";
         context.SaveChanges();
         return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception)
     {
     }
     return(Json(new { success = false }, JsonRequestBehavior.AllowGet));
 }
 public ActionResult AddOrEdit(string Id = "")
 {
     try
     {
         var data = confirgurationService.GetConfirgurationByID(Id);
         if (data != null)
         {
             var model = new ConfirgurationViewModel();
             model.Meta_Name  = data.Meta_Name;
             model.Meta_Value = data.Meta_Value;
             return(PartialView("CRUDConfirguration", model));
         }
     }
     catch (Exception)
     {
     }
     return(PartialView("CRUDConfirguration", new ConfirgurationViewModel()));
 }