public async Task <int> EditRoleAsync(Guid id, string title) { var role = await _dal.QueryAsync(id); if (role == null) { return(-2); } role.Title = title; role.UpdateTime = DateTime.Now; return(await _dal.EditAsync(role)); }