public ActionResult ResourceTypeModify(Reception_ResourceType model) { if (string.IsNullOrEmpty(model.RT_ID)) { model.RT_ID = CommonFun.GenerGuid(); model.ImgPath = ""; model.CreateTime = DateTime.Now; //添加资源分类 _reception_ResourceType.Insert(model); } else { //修改资源分类 _reception_ResourceType.Update(model); } return(RedirectToAction("ResourceType")); }