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