//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)); }
public JsonResult UpdateFBHandleInDatabase(FacebookWidgetViewModel model) { _services.UpdateFBHandle(model.Ticker, model.FacebookURL); return(Json("")); }