public ActionResult FlowProc(int id, string formname, int templateid, string flowflow) { if (id == 0) { Flow.AddInfo(new Flow(formname, templateid, flowflow)); } else { Flow.UpdateInfo(new Flow(id, formname, templateid, flowflow)); } return(RedirectToAction("FlowManager")); }