public ActionResult Save(coreLookup lookup) { var record = Request.Params["record"]; var hashtable = JsonConvert.DeserializeObject <Hashtable>(record); string tableName = hashtable["tableName"].ToString() ?? string.Empty; if (lookup.Id.Equals(0)) { _lookup.AddNew(lookup, tableName); } else { _lookup.Edit(lookup, tableName); } return(this.Json(new { success = true, data = "Lookup item has been saved successfully!" })); }