public ActionResult FlowEdit(int id, string type) { SE_HomePageConfigManager manager = new SE_HomePageConfigManager(); if (id == 0) { if (string.IsNullOrWhiteSpace(type)) { type = "1"; } return(View(new SE_HomePageFlowConfig() { Type = type.ToString() })); } else { return(View(manager.GetFlowEntity(id))); } }