public ActionResult CopyAsNew(int id) { var m = new QueryModel { SelectedId = id }; m.LoadScratchPad(); m.CopyAsNew(); var c = new ContentResult(); c.Content = m.QueryId.ToString(); return c; }