public ActionResult AddRoleInfo(RoleInfo roleInfo) { roleInfo.DelFlag = (short)DeleteFlag.Normal; roleInfo.ModifiedOn = DateTime.Now; roleInfo.SubTime = DateTime.Now; RoleInfoBll.AddEntity(roleInfo); return Content("success"); }
public ActionResult EditRoleInfo(RoleInfo roleInfo) { roleInfo.ModifiedOn = DateTime.Now; RoleInfoBll.UpdateEntity(roleInfo); return Content("success"); }