/// <summary> /// 修改 /// </summary> /// <param name="editRequest"></param> /// <returns></returns> public async Task <ResponseMessage <bool> > RoleUpdateAsync(RoleEditRequest editRequest) { var response = new ResponseMessage <bool>() { Extension = false }; var Role = _mapper.Map <Role>(editRequest); Role.UpdateTime = DateTime.Now; if (await _roleStore.PutEntityAsync(Role.Id, Role)) { response.Extension = true; } return(response); }