public ActionResult Edit([Bind(Include = "Id, Language, Module, Key, Value, IsEditable")] Resource resource) { Db db = new Db(DbServices.ConnectionString); if (ModelState.IsValid) { try { ResourceServices.Update(CurrentUser.Id, resource, db); TempData["Success"] = ResourceServices.GetString(Cf.Data.Resources.ResourceBase.Culture, "UI", "UpdateConfirmed"); return(RedirectToAction("Index")); } catch (CfException cfex) { TempData["Failure"] = cfex.ErrorDefinition.LocalizedMessage; } catch (Exception ex) { TempData["Failure"] = ex.Message; } } return(View(resource)); }