Example #1
0
        //Update the data in database and retuns the partial view containing new facebook handle
        public ActionResult UpdateHandle(string ticker, string facebookUrl, string name)
        {
            var FBModel = new FacebookWidgetViewModel
            {
                IsAdminUser = true,
                Name        = name,
                Ticker      = ticker,
                FacebookURL = facebookUrl
            };

            return(PartialView("~/Views/Shared/_FacebookWidget.cshtml", FBModel));
        }
Example #2
0
 public JsonResult UpdateFBHandleInDatabase(FacebookWidgetViewModel model)
 {
     _services.UpdateFBHandle(model.Ticker, model.FacebookURL);
     return(Json(""));
 }