public Response <bool> UpdateRole(RoleResult role) { var result = new Response <bool>(); List <Role> roles = new List <Role>(); roles.Add(new Role { Name = role.RoleName, Remark = role.Remark, State = 1 }); roleDao.BatchUpdate(roles, "id=?3", r => r.Name, r => r.Remark, r => r.State, r => r.Id); return(result); }